]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
mfd: Implement tps65910 IRQ cleanup
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 20 Jun 2011 10:47:55 +0000 (11:47 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:23 +0000 (23:28 +0200)
The tps65910_irq_exit() cleanup function was generating a warning from
sparse due to the lack of a prototype. This wasn't causing GCC warnings
as the driver wasn't cleaning up its IRQs on exit at all so there was no
use of an unprototyped function.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps65910.c
include/linux/mfd/tps65910.h

index 2229e66d80db8e4d7b11afe823295d69162f1f00..837f0e6fbf0ec4b2b9c4113d61a6bc9598ca29d1 100644 (file)
@@ -187,6 +187,7 @@ static int tps65910_i2c_remove(struct i2c_client *i2c)
        struct tps65910 *tps65910 = i2c_get_clientdata(i2c);
 
        mfd_remove_devices(tps65910->dev);
+       tps65910_irq_exit(tps65910);
        kfree(tps65910);
 
        return 0;
index 73572c65d04f17e8bb6729689035bbe721c516f8..82b4c8801a4fc673fc4c7c0451bdb11330c821c7 100644 (file)
@@ -791,6 +791,7 @@ int tps65910_clear_bits(struct tps65910 *tps65910, u8 reg, u8 mask);
 void tps65910_gpio_init(struct tps65910 *tps65910, int gpio_base);
 int tps65910_irq_init(struct tps65910 *tps65910, int irq,
                struct tps65910_platform_data *pdata);
+int tps65910_irq_exit(struct tps65910 *tps65910);
 
 static inline int tps65910_chip_id(struct tps65910 *tps65910)
 {