Skip to content

Commit a164825

Browse files
ajaykathatcristibirsan
authored andcommitted
staging: wilc1000: fixed compilation error in SPI probe
Removed return statement from SPI probe function to remove compilation warning. Fixes: e94f7a1 (staging: wilc1000: handle power sequence when pins are not in DT) Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Acked-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent e94f7a1 commit a164825

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • drivers/staging/wilc1000

drivers/staging/wilc1000/spi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@ static int wilc_bus_probe(struct spi_device *spi)
137137
wilc->rtc_clk = devm_clk_get(&spi->dev, "rtc");
138138
if (PTR_ERR_OR_ZERO(wilc->rtc_clk) == -EPROBE_DEFER)
139139
goto netdev_cleanup;
140-
return -EPROBE_DEFER;
141-
} else if (!IS_ERR(wilc->rtc_clk)) {
140+
else if (!IS_ERR(wilc->rtc_clk))
142141
clk_prepare_enable(wilc->rtc_clk);
143-
}
144142

145143
ret = wilc_of_parse_power_pins(wilc);
146144
if (ret)

0 commit comments

Comments
 (0)