mmc: dw_mmc: remove the deprecated "num-slots"
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 23 Feb 2018 06:41:34 +0000 (15:41 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Mar 2018 08:27:11 +0000 (09:27 +0100)
'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>
Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
drivers/mmc/host/dw_mmc-pci.c
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h

index 75c9fdc..7e5e427 100644 (file)
@@ -59,11 +59,6 @@ Optional properties:
   is specified and the ciu clock is specified then we'll try to set the ciu
   clock to this at probe time.
 
-* num-slots (DEPRECATED): specifies the number of slots supported by the controller.
-  The number of physical slots actually used could be equal or less than the
-  value specified by num-slots. If this property is not specified, the value
-  of num-slot property is assumed to be 1.
-
 * fifo-depth: The maximum size of the tx/rx fifo's. If this property is not
   specified, the default value of the fifo size is determined from the
   controller registers.
index ab87132..3ad07d7 100644 (file)
@@ -29,7 +29,6 @@
                                MMC_CAP_SDIO_IRQ)
 
 static struct dw_mci_board pci_board_data = {
-       .num_slots                      = 1,
        .caps                           = DW_MCI_CAPABILITIES,
        .bus_hz                         = 33 * 1000 * 1000,
        .detect_delay_ms                = 200,
index b07135e..e7de838 100644 (file)
@@ -3126,10 +3126,6 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
                        return ERR_PTR(-EPROBE_DEFER);
        }
 
-       /* find out number of slots supported */
-       if (!device_property_read_u32(dev, "num-slots", &pdata->num_slots))
-               dev_info(dev, "'num-slots' was deprecated.\n");
-
        if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth))
                dev_info(dev,
                         "fifo-depth property not found, using value of FIFOTH register as default\n");
index 9c7085a..950f194 100644 (file)
@@ -251,8 +251,6 @@ struct dma_pdata;
 
 /* Board platform data */
 struct dw_mci_board {
-       u32 num_slots;
-
        unsigned int bus_hz; /* Clock speed at the cclk_in pad */
 
        u32 caps;       /* Capabilities */