mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
wilc1000: Fix clock name binding
Documentation/devicetree/bindings/net/wireless/microchip,wilc1000.yaml
requires an "rtc" clock name.
drivers/net/wireless/microchip/wilc1000/sdio.c is using "rtc" clock name
as well. Comply with the binding in wilc1000/spi.c too.
Fixes: 854d66df74
("staging: wilc1000: look for rtc_clk clock in spi mode")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210428025445.81953-1-tudor.ambarus@microchip.com
This commit is contained in:
parent
ad4d74cd81
commit
d4f23164cf
@ -164,7 +164,7 @@ static int wilc_bus_probe(struct spi_device *spi)
|
||||
wilc->bus_data = spi_priv;
|
||||
wilc->dev_irq_num = spi->irq;
|
||||
|
||||
wilc->rtc_clk = devm_clk_get(&spi->dev, "rtc_clk");
|
||||
wilc->rtc_clk = devm_clk_get(&spi->dev, "rtc");
|
||||
if (PTR_ERR_OR_ZERO(wilc->rtc_clk) == -EPROBE_DEFER) {
|
||||
kfree(spi_priv);
|
||||
return -EPROBE_DEFER;
|
||||
|
Loading…
Reference in New Issue
Block a user