Skip to content

Commit

Permalink
mfd: tps65912: Declare and use tps65912_irq_exit()
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Mar 12, 2013
1 parent df545d1 commit 80e4e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/tps65912-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ int tps65912_device_init(struct tps65912 *tps65912)
void tps65912_device_exit(struct tps65912 *tps65912)
{
mfd_remove_devices(tps65912->dev);
tps65912_irq_exit(tps65912);
kfree(tps65912);
}

Expand Down
1 change: 1 addition & 0 deletions include/linux/mfd/tps65912.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 80e4e67

Please sign in to comment.