lkml.org 
[lkml]   [2013]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v8 11/22] mfd: omap_usb_host: Avoid missing platform data checks in suspend/resume
    Date
    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>
    ---
    drivers/mfd/omap-usb-host.c | 10 ----------
    1 files changed, 0 insertions(+), 10 deletions(-)

    diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
    index d6e6b8c..061366d 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)

    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);

    @@ -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]))
    --
    1.7.4.1


    \
     
     \ /
      Last update: 2013-01-18 14:01    [W:3.124 / U:0.356 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site