};
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);
kfree(bundle);
}
-#ifdef CONFIG_PM_RUNTIME
-
+#ifdef CONFIG_PM
static void gb_bundle_disable_all_connections(struct gb_bundle *bundle)
{
struct gb_connection *connection;
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;
{ },
};
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
static int gb_camera_suspend(struct device *dev)
{
struct gb_bundle *bundle = to_gb_bundle(dev);
#include "arpc.h"
#include "greybus.h"
#include "greybus_trace.h"
-#include "kernel_ver.h"
#include "connection.h"
kfree(gbphy_dev);
}
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
static int gb_gbphy_idle(struct device *dev)
{
pm_runtime_mark_last_busy(dev);
#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;
#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"
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);
+++ /dev/null
-/*
- * 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 */