staging: greybus: remove CONFIG_PM_RUNTIME from kernel_ver.h
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 9 Sep 2016 07:47:01 +0000 (09:47 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 19 Sep 2016 14:52:07 +0000 (16:52 +0200)
The last thing remaining in kernel_ver.h was the setting of
CONFIG_PM_RUNTIME, which isn't needed in a in-tree implementation.  So
remove the setting of this value, and the .h file entirely as that was
the last thing left in it.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_module.c
drivers/staging/greybus/bundle.c
drivers/staging/greybus/bundle.h
drivers/staging/greybus/camera.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/gbphy.c
drivers/staging/greybus/gbphy.h
drivers/staging/greybus/greybus.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/kernel_ver.h [deleted file]

index 411735df2bb41698321fcb27aedf2c2d3610fe63..ae1c0fa8575281658ee2229457ab766b28945eef 100644 (file)
@@ -421,7 +421,7 @@ static const struct greybus_bundle_id gb_audio_id_table[] = {
 };
 MODULE_DEVICE_TABLE(greybus, gb_audio_id_table);
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int gb_audio_suspend(struct device *dev)
 {
        struct gb_bundle *bundle = to_gb_bundle(dev);
index 5bd7731237f536c89d296e90376a907ca7998a18..d2ef57d090bef3b72e0f752add4836b26ca249e9 100644 (file)
@@ -89,8 +89,7 @@ static void gb_bundle_release(struct device *dev)
        kfree(bundle);
 }
 
-#ifdef CONFIG_PM_RUNTIME
-
+#ifdef CONFIG_PM
 static void gb_bundle_disable_all_connections(struct gb_bundle *bundle)
 {
        struct gb_connection *connection;
index 349845ee893c4c60d0720282c31e1ac7ba8e00c4..0c3491def96c29f22390319eb5703986c7047c2c 100644 (file)
@@ -41,7 +41,7 @@ int gb_bundle_add(struct gb_bundle *bundle);
 void gb_bundle_destroy(struct gb_bundle *bundle);
 
 /* Bundle Runtime PM wrappers */
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static inline int gb_pm_runtime_get_sync(struct gb_bundle *bundle)
 {
        int retval;
index e1f3046105c1efab6e67dbbbde11d7ccb9fc4874..46d2e8a9e49067fd7bf650081e48787ccced3ee4 100644 (file)
@@ -1344,7 +1344,7 @@ static const struct greybus_bundle_id gb_camera_id_table[] = {
        { },
 };
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int gb_camera_suspend(struct device *dev)
 {
        struct gb_bundle *bundle = to_gb_bundle(dev);
index 6cb13fcf62d4f2c33927a3d06ff5fc6125ef6e8a..071bb1cfd3ae1d38c510c19adbf7cdd3d9daa9a7 100644 (file)
@@ -17,7 +17,6 @@
 #include "arpc.h"
 #include "greybus.h"
 #include "greybus_trace.h"
-#include "kernel_ver.h"
 #include "connection.h"
 
 
index 478c162d8ff0ed4ea906db71d53bc8d5b36d06b0..bcde7c9a0f172184ddb8b15beb505105ef931c51 100644 (file)
@@ -52,7 +52,7 @@ static void gbphy_dev_release(struct device *dev)
        kfree(gbphy_dev);
 }
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int gb_gbphy_idle(struct device *dev)
 {
        pm_runtime_mark_last_busy(dev);
index e251186d5cbb81178f019f85531b304b5a3d9d30..8ee68055ccc4b1e292235ff837eec6d1475bb806 100644 (file)
@@ -66,7 +66,7 @@ void gb_gbphy_deregister_driver(struct gbphy_driver *driver);
 #define module_gbphy_driver(__gbphy_driver)    \
        module_driver(__gbphy_driver, gb_gbphy_register, gb_gbphy_deregister)
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev)
 {
        struct device *dev = &gbphy_dev->dev;
index 3e32028832c194756cf91218a797e590cce9aca2..12526887ae2e72030ea2654a13ab69f96fc9cfe4 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/pm_runtime.h>
 #include <linux/idr.h>
 
-#include "kernel_ver.h"
 #include "greybus_id.h"
 #include "greybus_manifest.h"
 #include "greybus_protocols.h"
index c3ed3d7dee9999ea85fdc213520d2a63d50f27c5..546b090e2d51c9fc1211210e0d16decf9d70cdcb 100644 (file)
@@ -698,7 +698,7 @@ static void gb_interface_release(struct device *dev)
        kfree(intf);
 }
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int gb_interface_suspend(struct device *dev)
 {
        struct gb_interface *intf = to_gb_interface(dev);
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h
deleted file mode 100644 (file)
index cfd7bc7..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Greybus kernel "version" glue logic.
- *
- * Copyright 2014 Google Inc.
- * Copyright 2014 Linaro Ltd.
- *
- * Released under the GPLv2 only.
- *
- * Backports of newer kernel apis to allow the code to build properly on older
- * kernel versions.  Remove this file when merging to upstream, it should not be
- * needed at all
- */
-
-#ifndef __GREYBUS_KERNEL_VER_H
-#define __GREYBUS_KERNEL_VER_H
-
-#include <linux/kernel.h>
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
-/*
- * After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
- * selected) PM_RUNTIME is always set if PM is set, so files that are build
- * conditionally if CONFIG_PM_RUNTIME is set may now be build if CONFIG_PM is
- * set.
- */
-
-#ifdef CONFIG_PM
-#define CONFIG_PM_RUNTIME
-#endif /* CONFIG_PM */
-#endif
-
-#endif /* __GREYBUS_KERNEL_VER_H */