greybus: gbphy: fix compile error with CONFIG_PM_RUNTIME disabled
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 8 Sep 2016 16:48:43 +0000 (18:48 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 8 Sep 2016 17:50:57 +0000 (19:50 +0200)
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>
drivers/staging/greybus/gbphy.h

index 57c6f65aeb7ff0392b39102ee1f5ee3fc2757d04..e251186d5cbb81178f019f85531b304b5a3d9d30 100644 (file)
@@ -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