diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-09-08 16:06:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-09-19 16:43:27 +0200 |
commit | 148e0b8f48a83008596876befe1d9aed256c8ea1 (patch) | |
tree | d0c4150e9fba76c8b660e73a0b3fa8e298474f91 /drivers/staging/greybus/spi.c | |
parent | 3e4b5b883780ed795843f68213c9db3f8d78391e (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/spi.c')
-rw-r--r-- | drivers/staging/greybus/spi.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index bb76b3c0118d..c893552b5c0b 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -13,26 +13,7 @@ #include "gbphy.h" #include "spilib.h" -#ifndef SPI_CORE_SUPPORT_PM -static int gbphy_spi_prepare_transfer_hardware(struct device *dev) -{ - return gbphy_runtime_get_sync(to_gbphy_dev(dev)); -} - -static void gbphy_spi_unprepare_transfer_hardware(struct device *dev) -{ - gbphy_runtime_put_autosuspend(to_gbphy_dev(dev)); -} - -static struct spilib_ops __spilib_ops = { - .prepare_transfer_hardware = gbphy_spi_prepare_transfer_hardware, - .unprepare_transfer_hardware = gbphy_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; static int gb_spi_probe(struct gbphy_device *gbphy_dev, const struct gbphy_device_id *id) |