mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
724c3be3db
If twl4030_exit_irq() returns an error, the effect is that the caller (twl_remove()) forwards the error to the i2c core without unregistering its dummy slave devices. This only makes the i2c core emit another error message and then it still removes the device. In this situation it doesn't make sense to abort the remove cleanup and not unregister the slave devices. So do that. Then return value is actually unused and twl4030_exit_irq() can better be changed to return no value at all. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220113101430.12869-3-u.kleine-koenig@pengutronix.de
12 lines
364 B
C
12 lines
364 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __TWL_CORE_H__
|
|
#define __TWL_CORE_H__
|
|
|
|
extern int twl6030_init_irq(struct device *dev, int irq_num);
|
|
extern void twl6030_exit_irq(void);
|
|
extern int twl4030_init_irq(struct device *dev, int irq_num);
|
|
extern void twl4030_exit_irq(void);
|
|
extern int twl4030_init_chip_irq(const char *chip);
|
|
|
|
#endif /* __TWL_CORE_H__ */
|