diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-12-24 01:45:01 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-12-29 21:06:13 +0300 |
commit | 1faa65b0cf29dd23a8641805003bd58c5b3ab16c (patch) | |
tree | 1f8f544f44c60a8180b31d60908d38a3ffc8bc54 /drivers/nfc/st-nci/spi.c | |
parent | 53eb5252bb71c77b46ed953a2bb16627804dd29d (diff) | |
download | linux-1faa65b0cf29dd23a8641805003bd58c5b3ab16c.tar.xz |
nfc: st-nci: Remove unneeded CONFIG_OF switches
DT headers already define NOOP routines when CONFIG_OF is not
defined.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st-nci/spi.c')
-rw-r--r-- | drivers/nfc/st-nci/spi.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/nfc/st-nci/spi.c b/drivers/nfc/st-nci/spi.c index d6519bb9dba5..0ab40cb335ad 100644 --- a/drivers/nfc/st-nci/spi.c +++ b/drivers/nfc/st-nci/spi.c @@ -225,7 +225,6 @@ static struct nfc_phy_ops spi_phy_ops = { .disable = st_nci_spi_disable, }; -#ifdef CONFIG_OF static int st_nci_spi_of_request_resources(struct spi_device *dev) { struct st_nci_spi_phy *phy = spi_get_drvdata(dev); @@ -263,12 +262,6 @@ static int st_nci_spi_of_request_resources(struct spi_device *dev) return 0; } -#else -static int st_nci_spi_of_request_resources(struct spi_device *dev) -{ - return -ENODEV; -} -#endif static int st_nci_spi_request_resources(struct spi_device *dev) { @@ -374,13 +367,11 @@ static int st_nci_spi_remove(struct spi_device *dev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id of_st_nci_spi_match[] = { { .compatible = "st,st21nfcb-spi", }, {} }; MODULE_DEVICE_TABLE(of, of_st_nci_spi_match); -#endif static struct spi_driver st_nci_spi_driver = { .driver = { |