Commit f36a0ee5 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Kalle Valo
Browse files

wilc1000: dispose irq on failure path

parent dc8b338f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -149,14 +149,15 @@ static int wilc_sdio_probe(struct sdio_func *func,
	wilc->rtc_clk = devm_clk_get(&func->card->dev, "rtc");
	if (PTR_ERR_OR_ZERO(wilc->rtc_clk) == -EPROBE_DEFER) {
		ret = -EPROBE_DEFER;
		goto netdev_cleanup;
		goto dispose_irq;
	} else if (!IS_ERR(wilc->rtc_clk))
		clk_prepare_enable(wilc->rtc_clk);

	dev_info(&func->dev, "Driver Initializing success\n");
	return 0;

netdev_cleanup:
dispose_irq:
	irq_dispose_mapping(wilc->dev_irq_num);
	wilc_netdev_cleanup(wilc);
free:
	kfree(sdio_priv);