Skip to content

Commit 16f5df8

Browse files
shawn1221storulf
authored andcommitted
mmc: dw_mmc: fix the wrong condition check of getting num-slots from DT
Change to print the information about when the deprecated "num-slots" DT binding is being used, as to avoid confusion when browsing the log: dwmmc_rockchip fe320000.dwmmc: 'num-slots' was deprecated. Signed-off-by: Shawn Lin <[email protected]> Fixes: d30a8f7 ("mmc: dw_mmc: deprecated the "num-slots" property") Signed-off-by: Ulf Hansson <[email protected]>
1 parent 36acbd9 commit 16f5df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/dw_mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2957,7 +2957,7 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
29572957
}
29582958

29592959
/* find out number of slots supported */
2960-
if (device_property_read_u32(dev, "num-slots", &pdata->num_slots))
2960+
if (!device_property_read_u32(dev, "num-slots", &pdata->num_slots))
29612961
dev_info(dev, "'num-slots' was deprecated.\n");
29622962

29632963
if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth))

0 commit comments

Comments
 (0)