W1: w1-gpio - switch to using dev_pm_ops
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 17 Oct 2015 18:39:40 +0000 (11:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:45:05 +0000 (21:45 -0700)
commit36fccce0e82a5ccd1c7f3861398f3303bff4669a
treefad1cae3137197d167f11752f258ca0ddce1a874
parenta2a47d00c08e2306185945dabaafd11447641077
W1: w1-gpio - switch to using dev_pm_ops

Let's stop using legacy platform driver hooks for power management and
switch to using the standard dev_pm_ops-based hooks.

Also, instead of guarding PM methods with #ifdef CONFIG_PM annotate them
as __maybe_unused as it provides better compile coverage.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/w1-gpio.c