summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-04-11 09:14:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-11 13:43:19 +0200
commitb29f0b14404d4d1c9e08ecee56fbd8788d90aa68 (patch)
tree171919864b87dba47389e8712c9fbf6bc4a891df /drivers
parent80f84cc5b68bafbf18154ac162a90ea908b76a79 (diff)
downloadbarebox-b29f0b14404d4d1c9e08ecee56fbd8788d90aa68.tar.gz
mci: dw_mmc: make reset optional
The reset is optional, so no point in warning about it unless there was an actual error getting the reset. reset_control_get_optional() reports the case of no reset being specified by returning NULL, so use that instead. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230411071436.1630752-14-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c
index 8f3317deb5..73a8ebbc15 100644
--- a/drivers/mci/dw_mmc.c
+++ b/drivers/mci/dw_mmc.c
@@ -570,7 +570,7 @@ static int dw_mmc_probe(struct device *dev)
clk_enable(host->clk_biu);
clk_enable(host->clk_ciu);
- rst = reset_control_get(dev, "reset");
+ rst = reset_control_get_optional(dev, "reset");
if (IS_ERR(rst)) {
dev_warn(dev, "error claiming reset: %pe\n", rst);
} else if (rst) {