提交 80e4e671 编写于 作者: M Mark Brown 提交者: Samuel Ortiz

mfd: tps65912: Declare and use tps65912_irq_exit()

Clean up interrupts on exit, silencing a sparse warning caused by
tps65912_irq_exit() being defined but not prototyped as we go.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 df545d1c
...@@ -169,6 +169,7 @@ int tps65912_device_init(struct tps65912 *tps65912) ...@@ -169,6 +169,7 @@ int tps65912_device_init(struct tps65912 *tps65912)
void tps65912_device_exit(struct tps65912 *tps65912) void tps65912_device_exit(struct tps65912 *tps65912)
{ {
mfd_remove_devices(tps65912->dev); mfd_remove_devices(tps65912->dev);
tps65912_irq_exit(tps65912);
kfree(tps65912); kfree(tps65912);
} }
......
...@@ -323,5 +323,6 @@ int tps65912_device_init(struct tps65912 *tps65912); ...@@ -323,5 +323,6 @@ int tps65912_device_init(struct tps65912 *tps65912);
void tps65912_device_exit(struct tps65912 *tps65912); void tps65912_device_exit(struct tps65912 *tps65912);
int tps65912_irq_init(struct tps65912 *tps65912, int irq, int tps65912_irq_init(struct tps65912 *tps65912, int irq,
struct tps65912_platform_data *pdata); struct tps65912_platform_data *pdata);
int tps65912_irq_exit(struct tps65912 *tps65912);
#endif /* __LINUX_MFD_TPS65912_H */ #endif /* __LINUX_MFD_TPS65912_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册