• Kevin Hilman's avatar
    mmc: OMAP HS-MMC: convert to dev_pm_ops · a791daa1
    Kevin Hilman authored
    Convert PM operations to use dev_pm_ops.  This will facilitate the runtime
    PM coversion which will add to dev_pm_ops hooks.
    
    Note that dev_pm_ops version of the suspend hook no longer takes a 'state'
    argument.  However, the MMC core function mmc_suspend_host() still takes a
    'state' argument, but it is unused, so a dummy state variable was created
    to pass to the MMC core.
    
    In the future, the MMC core should be converted to drop this state
    argument and the rest of the MMC drivers could be easily converted to
    dev_pm_ops as well.
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
    Cc: Adrian Hunter <adrian.hunter@nokia.com>
    Cc: Matt Fleming <matt@console-pimps.org>
    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Denis Karpov <ext-denis.2.karpov@nokia.com>
    Cc: <linux-mmc@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a791daa1
omap_hsmmc.c 58.2 KB