.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * TI LP8788 MFD - core interface |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2012 Texas Instruments |
---|
5 | 6 | * |
---|
6 | 7 | * 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 | | - * |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/err.h> |
---|
.. | .. |
---|
199 | 195 | if (ret) |
---|
200 | 196 | return ret; |
---|
201 | 197 | |
---|
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; |
---|
204 | 208 | } |
---|
205 | 209 | |
---|
206 | 210 | static int lp8788_remove(struct i2c_client *cl) |
---|