.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Atmel SSC driver |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #include <linux/platform_device.h> |
---|
.. | .. |
---|
235 | 232 | clk_disable_unprepare(ssc->clk); |
---|
236 | 233 | |
---|
237 | 234 | ssc->irq = platform_get_irq(pdev, 0); |
---|
238 | | - if (!ssc->irq) { |
---|
| 235 | + if (ssc->irq < 0) { |
---|
239 | 236 | dev_dbg(&pdev->dev, "could not get irq\n"); |
---|
240 | | - return -ENXIO; |
---|
| 237 | + return ssc->irq; |
---|
241 | 238 | } |
---|
242 | 239 | |
---|
243 | 240 | mutex_lock(&user_lock); |
---|