aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2018-02-23 01:41:34 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2018-03-15 04:27:11 -0400
commit01b653c2199b55ea798f9b4e224d055317524d8f (patch)
treec63e989815a01d3542ae54a334c3c6c2f2a69857
parent86b93a4825d8fa22f05e712a0e70b7406e1df1b5 (diff)
mmc: dw_mmc: remove the deprecated "num-slots"
'num-slots' property had already deprecated. Remove the 'nom-slots' property that is kept to maintain the compatibility. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt5
-rw-r--r--drivers/mmc/host/dw_mmc-pci.c1
-rw-r--r--drivers/mmc/host/dw_mmc.c4
-rw-r--r--drivers/mmc/host/dw_mmc.h2
4 files changed, 0 insertions, 12 deletions
diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
index 75c9fdca4aaf..7e5e427a22ce 100644
--- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
+++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
@@ -59,11 +59,6 @@ Optional properties:
59 is specified and the ciu clock is specified then we'll try to set the ciu 59 is specified and the ciu clock is specified then we'll try to set the ciu
60 clock to this at probe time. 60 clock to this at probe time.
61 61
62* num-slots (DEPRECATED): specifies the number of slots supported by the controller.
63 The number of physical slots actually used could be equal or less than the
64 value specified by num-slots. If this property is not specified, the value
65 of num-slot property is assumed to be 1.
66
67* fifo-depth: The maximum size of the tx/rx fifo's. If this property is not 62* fifo-depth: The maximum size of the tx/rx fifo's. If this property is not
68 specified, the default value of the fifo size is determined from the 63 specified, the default value of the fifo size is determined from the
69 controller registers. 64 controller registers.
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index ab8713297edb..3ad07d7b2c97 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -29,7 +29,6 @@
29 MMC_CAP_SDIO_IRQ) 29 MMC_CAP_SDIO_IRQ)
30 30
31static struct dw_mci_board pci_board_data = { 31static struct dw_mci_board pci_board_data = {
32 .num_slots = 1,
33 .caps = DW_MCI_CAPABILITIES, 32 .caps = DW_MCI_CAPABILITIES,
34 .bus_hz = 33 * 1000 * 1000, 33 .bus_hz = 33 * 1000 * 1000,
35 .detect_delay_ms = 200, 34 .detect_delay_ms = 200,
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index b07135e6f74f..e7de83805e60 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -3126,10 +3126,6 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
3126 return ERR_PTR(-EPROBE_DEFER); 3126 return ERR_PTR(-EPROBE_DEFER);
3127 } 3127 }
3128 3128
3129 /* find out number of slots supported */
3130 if (!device_property_read_u32(dev, "num-slots", &pdata->num_slots))
3131 dev_info(dev, "'num-slots' was deprecated.\n");
3132
3133 if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth)) 3129 if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth))
3134 dev_info(dev, 3130 dev_info(dev,
3135 "fifo-depth property not found, using value of FIFOTH register as default\n"); 3131 "fifo-depth property not found, using value of FIFOTH register as default\n");
diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h
index 9c7085ab63df..950f194e1573 100644
--- a/drivers/mmc/host/dw_mmc.h
+++ b/drivers/mmc/host/dw_mmc.h
@@ -251,8 +251,6 @@ struct dma_pdata;
251 251
252/* Board platform data */ 252/* Board platform data */
253struct dw_mci_board { 253struct dw_mci_board {
254 u32 num_slots;
255
256 unsigned int bus_hz; /* Clock speed at the cclk_in pad */ 254 unsigned int bus_hz; /* Clock speed at the cclk_in pad */
257 255
258 u32 caps; /* Capabilities */ 256 u32 caps; /* Capabilities */