Skip to content

Commit

Permalink
mfd: omap_usb_host: Avoid missing platform data checks in suspend/resume
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roger Quadros committed Feb 13, 2013
1 parent 300c2f8 commit a1f0d7a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,6 @@ static int usbhs_runtime_resume(struct device *dev)

dev_dbg(dev, "usbhs_runtime_resume\n");

if (!pdata) {
dev_dbg(dev, "missing platform_data\n");
return -ENODEV;
}

omap_tll_enable();
spin_lock_irqsave(&omap->lock, flags);

Expand Down Expand Up @@ -309,11 +304,6 @@ static int usbhs_runtime_suspend(struct device *dev)

dev_dbg(dev, "usbhs_runtime_suspend\n");

if (!pdata) {
dev_dbg(dev, "missing platform_data\n");
return -ENODEV;
}

spin_lock_irqsave(&omap->lock, flags);

if (is_ehci_tll_mode(pdata->port_mode[0]))
Expand Down

0 comments on commit a1f0d7a

Please sign in to comment.