Skip to contentSkip to conversation

mfd: tps65912: Declare and use tps65912_irq_exit()

PATCH Applied Mark Brown 2 participants 2 messages Mar 2, 2013 – Mar 13, 2013 Multifunction devices (MFD)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/mfd/tps65912-core.c  |    1 +
 include/linux/mfd/tps65912.h |    1 +
 2 files changed, 2 insertions(+)
drivers/mfd/tps65912-core.c +1 -0
index 4658b5b..aeb8e40 100644
@@ -169,6 +169,7 @@ err:
 void tps65912_device_exit(struct tps65912 *tps65912)
 {
 	mfd_remove_devices(tps65912->dev);
+	tps65912_irq_exit(tps65912);
 	kfree(tps65912);
 }
 
include/linux/mfd/tps65912.h +1 -0
index aaceab4..6d30903 100644
@@ -323,5 +323,6 @@ int tps65912_device_init(struct tps65912 *tps65912);
 void tps65912_device_exit(struct tps65912 *tps65912);
 int tps65912_irq_init(struct tps65912 *tps65912, int irq,
 			struct tps65912_platform_data *pdata);
+int tps65912_irq_exit(struct tps65912 *tps65912);
 
 #endif /*  __LINUX_MFD_TPS65912_H */
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

Hi Mark,

Quoted 8 lines · Mark Brown

Clean up interrupts on exit, silencing a sparse warning caused by tps65912_irq_exit() being defined but not prototyped as we go.

---
 drivers/mfd/tps65912-core.c  |    1 +
 include/linux/mfd/tps65912.h |    1 +
 2 files changed, 2 insertions(+)

Applied to my mfd-fixes tree, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/