[PATCH 6/6] mci: mci_spi: use mci_of_parse()
Sascha Hauer
s.hauer at pengutronix.de
Mon Mar 17 02:34:38 PDT 2025
The mci_spi driver parses the device tree alias itself. Instead call
mci_of_parse() which does the same and also parses other generic mmc
properties.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mci/mci_spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/mci_spi.c b/drivers/mci/mci_spi.c
index 864e15a416..dd4c9333ee 100644
--- a/drivers/mci/mci_spi.c
+++ b/drivers/mci/mci_spi.c
@@ -437,7 +437,7 @@ static int spi_mci_probe(struct device *dev)
host->mci.host_caps = MMC_CAP_SPI;
if (np) {
- host->mci.devname = xstrdup(of_alias_get(np));
+ mci_of_parse(&host->mci);
host->detect_pin = gpiod_get_optional(dev, NULL, GPIOD_IN);
if (IS_ERR(host->detect_pin))
dev_warn(dev, "Failed to get card detect GPIO (ignored)\n");
--
2.39.5
More information about the barebox
mailing list