aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/omap-usb-host.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2012-11-08 11:41:56 -0500
committerRoger Quadros <rogerq@ti.com>2013-02-13 06:22:46 -0500
commita1f0d7a1f8cede5585c13c2f1c79e86a05d425ec (patch)
treeb741c960a9ca44f0925b2054fa4347824789a21b /drivers/mfd/omap-usb-host.c
parent300c2f8ff4745f65d99cf105e9afef0f01b70d09 (diff)
mfd: omap_usb_host: Avoid missing platform data checks in suspend/resume
Get rid of the unnecessary missing platform data checks in runtime_suspend/resume. We are already checking for missing platform data in probe. Signed-off-by: Roger Quadros <rogerq@ti.com> Reviewed-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/mfd/omap-usb-host.c')
-rw-r--r--drivers/mfd/omap-usb-host.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index d6e6b8ca854c..061366dce8f6 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -277,11 +277,6 @@ static int usbhs_runtime_resume(struct device *dev)
277 277
278 dev_dbg(dev, "usbhs_runtime_resume\n"); 278 dev_dbg(dev, "usbhs_runtime_resume\n");
279 279
280 if (!pdata) {
281 dev_dbg(dev, "missing platform_data\n");
282 return -ENODEV;
283 }
284
285 omap_tll_enable(); 280 omap_tll_enable();
286 spin_lock_irqsave(&omap->lock, flags); 281 spin_lock_irqsave(&omap->lock, flags);
287 282
@@ -309,11 +304,6 @@ static int usbhs_runtime_suspend(struct device *dev)
309 304
310 dev_dbg(dev, "usbhs_runtime_suspend\n"); 305 dev_dbg(dev, "usbhs_runtime_suspend\n");
311 306
312 if (!pdata) {
313 dev_dbg(dev, "missing platform_data\n");
314 return -ENODEV;
315 }
316
317 spin_lock_irqsave(&omap->lock, flags); 307 spin_lock_irqsave(&omap->lock, flags);
318 308
319 if (is_ehci_tll_mode(pdata->port_mode[0])) 309 if (is_ehci_tll_mode(pdata->port_mode[0]))