X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Fstaging%2Fgreybus%2Ffw-core.c;h=454a98957ba53d0a22e970b91e435a4c57945f81;hb=148e0b8f48a83008596876befe1d9aed256c8ea1;hp=a7e4a8c24d228cdeda3229b3418903261b607caf;hpb=3e4b5b883780ed795843f68213c9db3f8d78391e;p=cascardo%2Flinux.git 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) {