Skip to contentSkip to conversation

mfd: Implement tps65910 IRQ cleanup

PATCH In review Mark Brown 3 participants 3 messages Jun 20, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: Implement tps65910 IRQ cleanup

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.

---
 drivers/mfd/tps65910.c       |    1 +
 include/linux/mfd/tps65910.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/mfd/tps65910.c +1 -0
index 2229e66..837f0e6 100644
@@ -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;
include/linux/mfd/tps65910.h +1 -0
index 8bb85b9..efcdb29 100644
@@ -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)
 {
Signature · 1 line
1.7.5.4
#1 lore raw

Hi Mark,

Quoted 4 lines · Mark Brown

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.

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/
Acked-by on v1 1/1
#2 lore raw
In reply to Mark Brown
Quoted 28 lines · Mark Brown

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.

---
 drivers/mfd/tps65910.c       |    1 +
 include/linux/mfd/tps65910.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/mfd/tps65910.c +1 -0
index 2229e66..837f0e6 100644
@@ -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;
include/linux/mfd/tps65910.h +0 -0
index 8bb85b9..efcdb29 100644

include/linux/mfd/tps65910.h int tps65910_clear_bits(struct tps65910 *tps65910, u8 reg, u8 mask); · line 797

Quoted 7 lines
include/linux/mfd/tps65910.h +1 -0
@@ -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)
 {

Thanks for that cleanup.

Graeme