lkml.org 
[lkml]   [2015]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/3] bus: omap_l3_noc: add missed callbacks for suspend-to-disk
    Date
    From: Grygorii Strashko <Grygorii.Strashko@linaro.org>

    Add missed callbacks needed for proper supporting of suspend-to-disk
    by using recently introduced macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS.

    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Nishanth Menon <nm@ti.com>
    Cc: Kevin Hilman <khilman@linaro.org>
    Cc: Santosh Shilimkar <ssantosh@kernel.org>
    Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
    ---
    drivers/bus/omap_l3_noc.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c
    index 11f7982..6ae3884 100644
    --- a/drivers/bus/omap_l3_noc.c
    +++ b/drivers/bus/omap_l3_noc.c
    @@ -300,7 +300,7 @@ static int omap_l3_probe(struct platform_device *pdev)
    return ret;
    }

    -#ifdef CONFIG_PM
    +#ifdef CONFIG_PM_SLEEP

    /**
    * l3_resume_noirq() - resume function for l3_noc
    @@ -346,7 +346,7 @@ static int l3_resume_noirq(struct device *dev)
    }

    static const struct dev_pm_ops l3_dev_pm_ops = {
    - .resume_noirq = l3_resume_noirq,
    + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(NULL, l3_resume_noirq)
    };

    #define L3_DEV_PM_OPS (&l3_dev_pm_ops)
    --
    1.9.1


    \
     
     \ /
      Last update: 2015-04-27 21:01    [W:2.166 / U:0.204 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site