.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2009-2010 Pengutronix |
---|
3 | 4 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
---|
4 | 5 | * |
---|
5 | 6 | * loosely based on an earlier driver that has |
---|
6 | 7 | * Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify it under |
---|
9 | | - * the terms of the GNU General Public License version 2 as published by the |
---|
10 | | - * Free Software Foundation. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
326 | 323 | adc1 |= MC13783_ADC1_ATOX; |
---|
327 | 324 | |
---|
328 | 325 | dev_dbg(mc13xxx->dev, "%s: request irq\n", __func__); |
---|
329 | | - mc13xxx_irq_request(mc13xxx, MC13XXX_IRQ_ADCDONE, |
---|
| 326 | + ret = mc13xxx_irq_request(mc13xxx, MC13XXX_IRQ_ADCDONE, |
---|
330 | 327 | mc13xxx_handler_adcdone, __func__, &adcdone_data); |
---|
| 328 | + if (ret) |
---|
| 329 | + goto out; |
---|
331 | 330 | |
---|
332 | 331 | mc13xxx_reg_write(mc13xxx, MC13XXX_ADC0, adc0); |
---|
333 | 332 | mc13xxx_reg_write(mc13xxx, MC13XXX_ADC1, adc1); |
---|