summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/fw-core.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-09-08 16:06:27 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-09-19 16:43:27 +0200
commit148e0b8f48a83008596876befe1d9aed256c8ea1 (patch)
treed0c4150e9fba76c8b660e73a0b3fa8e298474f91 /drivers/staging/greybus/fw-core.c
parent3e4b5b883780ed795843f68213c9db3f8d78391e (diff)
staging: greybus: spi: remove KERNEL_VERSION checks
No need to support older kernel versions in the Greybus SPI and spilib driver, so remove the checks as needed, we can now rely on all of the correct SPI core apis being present. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/fw-core.c')
-rw-r--r--drivers/staging/greybus/fw-core.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/staging/greybus/fw-core.c b/drivers/staging/greybus/fw-core.c
index a7e4a8c24d22..454a98957ba5 100644
--- a/drivers/staging/greybus/fw-core.c
+++ b/drivers/staging/greybus/fw-core.c
@@ -20,26 +20,7 @@ struct gb_fw_core {
struct gb_connection *cap_connection;
};
-#ifndef SPI_CORE_SUPPORT_PM
-static int fw_spi_prepare_transfer_hardware(struct device *dev)
-{
- return gb_pm_runtime_get_sync(to_gb_bundle(dev));
-}
-
-static void fw_spi_unprepare_transfer_hardware(struct device *dev)
-{
- gb_pm_runtime_put_autosuspend(to_gb_bundle(dev));
-}
-
-static struct spilib_ops __spilib_ops = {
- .prepare_transfer_hardware = fw_spi_prepare_transfer_hardware,
- .unprepare_transfer_hardware = fw_spi_unprepare_transfer_hardware,
-};
-
-static struct spilib_ops *spilib_ops = &__spilib_ops;
-#else
-static struct spilib_ops *spilib_ops = NULL;
-#endif
+static struct spilib_ops *spilib_ops;
struct gb_connection *to_fw_mgmt_connection(struct device *dev)
{