aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/gbphy.h
diff options
context:
space:
mode:
authorAxel Haslam <ahaslam@baylibre.com>2016-09-08 18:48:43 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-09-08 19:50:57 +0200
commit7398a66f10fc81403009120760b129f1e4ec7e52 (patch)
tree5118b1cd280b8c9f4288395d9a5d48a1317a1b2a /drivers/staging/greybus/gbphy.h
parentgreybus: gpio: create irqdomain before registering gpio controller (diff)
downloadlinux-dev-7398a66f10fc81403009120760b129f1e4ec7e52.tar.xz
linux-dev-7398a66f10fc81403009120760b129f1e4ec7e52.zip
greybus: gbphy: fix compile error with CONFIG_PM_RUNTIME disabled
gb_phy runtime functions use struct gbphy_device *gbphy_dev, and not struct device. When CONFIG_PM_RUNTIME is not enabled a compile error will show. Fix this by passing struct gbphy_device * as parameter Testing Done: compile with CONFIG_PM_RUNTIME disabled Signed-off-by: Axel Haslam <ahaslam@baylibre.com> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/gbphy.h')
-rw-r--r--drivers/staging/greybus/gbphy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/gbphy.h b/drivers/staging/greybus/gbphy.h
index 57c6f65aeb7f..e251186d5cbb 100644
--- a/drivers/staging/greybus/gbphy.h
+++ b/drivers/staging/greybus/gbphy.h
@@ -100,8 +100,8 @@ static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev)
pm_runtime_put_noidle(&gbphy_dev->dev);
}
#else
-static inline int gbphy_runtime_get_sync(struct device *dev) { return 0; }
-static inline void gbphy_runtime_put_autosuspend(struct device *dev) {}
+static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) { return 0; }
+static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) {}
static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) {}
static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev) {}
#endif