diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-01-29 04:05:18 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-02-13 18:22:56 -0500 |
commit | 5fd86d34c1fad19a570e7f787d5e4ea94c6f38f7 (patch) | |
tree | df2e83506f7122e5789fda9c0f93594110a2a96c /drivers/mfd | |
parent | 4f979ed5e2656570f433101bfc5bc116a919316b (diff) |
mfd: tps65090: remove suspend/resume callbacks
The tps65090 mfd driver implement the suspend/resume callbacks
which just disable and enable irqs in suspend/resume respectively.
This operation is already done in irq suspend and irq_resume and
hence it is not require to implement the same in the driver.
Remove this non-require code.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tps65090.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index 2ad0a1528650..98edb5be85c6 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c | |||
@@ -230,28 +230,6 @@ static int tps65090_i2c_remove(struct i2c_client *client) | |||
230 | return 0; | 230 | return 0; |
231 | } | 231 | } |
232 | 232 | ||
233 | #ifdef CONFIG_PM_SLEEP | ||
234 | static int tps65090_suspend(struct device *dev) | ||
235 | { | ||
236 | struct i2c_client *client = to_i2c_client(dev); | ||
237 | if (client->irq) | ||
238 | disable_irq(client->irq); | ||
239 | return 0; | ||
240 | } | ||
241 | |||
242 | static int tps65090_resume(struct device *dev) | ||
243 | { | ||
244 | struct i2c_client *client = to_i2c_client(dev); | ||
245 | if (client->irq) | ||
246 | enable_irq(client->irq); | ||
247 | return 0; | ||
248 | } | ||
249 | #endif | ||
250 | |||
251 | static const struct dev_pm_ops tps65090_pm_ops = { | ||
252 | SET_SYSTEM_SLEEP_PM_OPS(tps65090_suspend, tps65090_resume) | ||
253 | }; | ||
254 | |||
255 | static const struct i2c_device_id tps65090_id_table[] = { | 233 | static const struct i2c_device_id tps65090_id_table[] = { |
256 | { "tps65090", 0 }, | 234 | { "tps65090", 0 }, |
257 | { }, | 235 | { }, |
@@ -263,7 +241,6 @@ static struct i2c_driver tps65090_driver = { | |||
263 | .name = "tps65090", | 241 | .name = "tps65090", |
264 | .owner = THIS_MODULE, | 242 | .owner = THIS_MODULE, |
265 | .of_match_table = of_match_ptr(tps65090_of_match), | 243 | .of_match_table = of_match_ptr(tps65090_of_match), |
266 | .pm = &tps65090_pm_ops, | ||
267 | }, | 244 | }, |
268 | .probe = tps65090_i2c_probe, | 245 | .probe = tps65090_i2c_probe, |
269 | .remove = tps65090_i2c_remove, | 246 | .remove = tps65090_i2c_remove, |