• Sergei Shtylyov's avatar
    sh-sci: extend PM methods · cb876341
    Sergei Shtylyov authored
    In order to make it possible to restore from hibernation not only in Linux but
    also in e.g. U-Boot, we have to use sci_{suspend|remove}() for the PM {freeze|
    thaw|restore}() methods.  It's handy to achieve this by using SIMPLE_DEV_PM_OPS()
    macro, however we have to annotate sci_{suspend|remove}() with '__maybe_unused'
    in order to avoid compilation warnings when CONFIG_PM_SLEEP is undefined.
    
    Based on orignal patch by Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>.
    Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    cb876341
sh-sci.c 62.4 KB