hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/misc/atmel-ssc.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Atmel SSC driver
34 *
45 * Copyright (C) 2007 Atmel Corporation
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #include <linux/platform_device.h>
....@@ -235,9 +232,9 @@
235232 clk_disable_unprepare(ssc->clk);
236233
237234 ssc->irq = platform_get_irq(pdev, 0);
238
- if (!ssc->irq) {
235
+ if (ssc->irq < 0) {
239236 dev_dbg(&pdev->dev, "could not get irq\n");
240
- return -ENXIO;
237
+ return ssc->irq;
241238 }
242239
243240 mutex_lock(&user_lock);