hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/mc13xxx-core.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2009-2010 Pengutronix
34 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
45 *
56 * loosely based on an earlier driver that has
67 * 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.
118 */
129
1310 #include <linux/module.h>
....@@ -326,8 +323,10 @@
326323 adc1 |= MC13783_ADC1_ATOX;
327324
328325 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,
330327 mc13xxx_handler_adcdone, __func__, &adcdone_data);
328
+ if (ret)
329
+ goto out;
331330
332331 mc13xxx_reg_write(mc13xxx, MC13XXX_ADC0, adc0);
333332 mc13xxx_reg_write(mc13xxx, MC13XXX_ADC1, adc1);