Skip to contentSkip to conversation

net: wireless: wl1251: Remove unnecessary free_irq

PATCH New Himangi Saraogi 1 participant 1 message Aug 2, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: wireless: wl1251: Remove unnecessary free_irq

This patch does away with free_irq in the remove function as the irq is allocated with a devm_request_irq.

---
I'm not sure that devm_request_irq should be used in
the first place, as it will move the stopping of the interrupt over wl1251_free_hw. Should I use request_irq?

 drivers/net/wireless/ti/wl1251/spi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ti/wl1251/spi.c +0 -1
index a0aa8fa..735be53 100644
@@ -345,7 +345,6 @@ static int wl1251_spi_remove(struct spi_device *spi)
 {
 	struct wl1251 *wl = spi_get_drvdata(spi);
 
-	free_irq(wl->irq, wl);
 	wl1251_free_hw(wl);
 	regulator_disable(wl->vio);
 
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html