hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/lp8788.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI LP8788 MFD - core interface
34 *
45 * Copyright 2012 Texas Instruments
56 *
67 * Author: Milo(Woogyom) Kim <milo.kim@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
128 */
139
1410 #include <linux/err.h>
....@@ -199,8 +195,16 @@
199195 if (ret)
200196 return ret;
201197
202
- return mfd_add_devices(lp->dev, -1, lp8788_devs,
203
- ARRAY_SIZE(lp8788_devs), NULL, 0, NULL);
198
+ ret = mfd_add_devices(lp->dev, -1, lp8788_devs,
199
+ ARRAY_SIZE(lp8788_devs), NULL, 0, NULL);
200
+ if (ret)
201
+ goto err_exit_irq;
202
+
203
+ return 0;
204
+
205
+err_exit_irq:
206
+ lp8788_irq_exit(lp);
207
+ return ret;
204208 }
205209
206210 static int lp8788_remove(struct i2c_client *cl)