diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-13 23:43:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-13 23:43:32 -0500 |
commit | 21ebd6c68b5511b55f4f456e4ba17c2d711e3617 (patch) | |
tree | 2f4f98568a7a52ab6734fb190d0cbf6f9c1c6492 /drivers/mfd/tps65910.c | |
parent | 4b8be38cf782f8ebebc089083fa0572ade79d7ca (diff) | |
parent | 74d836c4142e5d100f8d9a1b2ee3003c2ed7109d (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (59 commits)
rtc: max8925: Add function to work as wakeup source
mfd: Add pm ops to max8925
mfd: Convert aat2870 to dev_pm_ops
mfd: Still check other interrupts if we get a wm831x touchscreen IRQ
mfd: Introduce missing kfree in 88pm860x probe routine
mfd: Add S5M series configuration
mfd: Add s5m series irq driver
mfd: Add S5M core driver
mfd: Improve mc13xxx dt binding document
mfd: Fix stmpe section mismatch
mfd: Fix stmpe build warning
mfd: Fix STMPE I2c build failure
mfd: Constify aat2870-core i2c_device_id table
gpio: Add support for stmpe variant 801
mfd: Add support for stmpe variant 801
mfd: Add support for stmpe variant 610
mfd: Add support for STMPE SPI interface
mfd: Separate out STMPE controller and interface specific code
misc: Remove max8997-muic sysfs attributes
mfd: Remove unused wm831x_irq_data_to_mask_reg()
...
Fix up trivial conflict in drivers/leds/Kconfig due to addition of
LEDS_MAX8997 and LEDS_TCA6507 next to each other.
Diffstat (limited to 'drivers/mfd/tps65910.c')
-rw-r--r-- | drivers/mfd/tps65910.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index c1da84bc1573..01cf5012a08f 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c | |||
@@ -172,15 +172,12 @@ static int tps65910_i2c_probe(struct i2c_client *i2c, | |||
172 | 172 | ||
173 | tps65910_gpio_init(tps65910, pmic_plat_data->gpio_base); | 173 | tps65910_gpio_init(tps65910, pmic_plat_data->gpio_base); |
174 | 174 | ||
175 | ret = tps65910_irq_init(tps65910, init_data->irq, init_data); | 175 | tps65910_irq_init(tps65910, init_data->irq, init_data); |
176 | if (ret < 0) | ||
177 | goto err; | ||
178 | 176 | ||
179 | kfree(init_data); | 177 | kfree(init_data); |
180 | return ret; | 178 | return ret; |
181 | 179 | ||
182 | err: | 180 | err: |
183 | mfd_remove_devices(tps65910->dev); | ||
184 | kfree(tps65910); | 181 | kfree(tps65910); |
185 | kfree(init_data); | 182 | kfree(init_data); |
186 | return ret; | 183 | return ret; |
@@ -190,8 +187,8 @@ static int tps65910_i2c_remove(struct i2c_client *i2c) | |||
190 | { | 187 | { |
191 | struct tps65910 *tps65910 = i2c_get_clientdata(i2c); | 188 | struct tps65910 *tps65910 = i2c_get_clientdata(i2c); |
192 | 189 | ||
193 | mfd_remove_devices(tps65910->dev); | ||
194 | tps65910_irq_exit(tps65910); | 190 | tps65910_irq_exit(tps65910); |
191 | mfd_remove_devices(tps65910->dev); | ||
195 | kfree(tps65910); | 192 | kfree(tps65910); |
196 | 193 | ||
197 | return 0; | 194 | return 0; |