aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index a1b80e515147..6e4d864b50ef 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2546,10 +2546,8 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
2546 u32 clock_frequency; 2546 u32 clock_frequency;
2547 2547
2548 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); 2548 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
2549 if (!pdata) { 2549 if (!pdata)
2550 dev_err(dev, "could not allocate memory for pdata\n");
2551 return ERR_PTR(-ENOMEM); 2550 return ERR_PTR(-ENOMEM);
2552 }
2553 2551
2554 /* find out number of slots supported */ 2552 /* find out number of slots supported */
2555 if (of_property_read_u32(dev->of_node, "num-slots", 2553 if (of_property_read_u32(dev->of_node, "num-slots",