wl1271: Changed platform_device to be dynamically allocated
Changed platform_device to be allocated dynamically from the wl1271_alloc_hw function. Also cleaned up error handling in the wl1271_alloc_hw function and module probe functions. Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

gecommit door
John W. Linville

bovenliggende
2ea9fb3d79
commit
3b56dd6a09
@@ -422,7 +422,7 @@ static int __devinit wl1271_probe(struct spi_device *spi)
|
||||
free_irq(wl->irq, wl);
|
||||
|
||||
out_free:
|
||||
ieee80211_free_hw(hw);
|
||||
wl1271_free_hw(wl);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -433,6 +433,7 @@ static int __devexit wl1271_remove(struct spi_device *spi)
|
||||
|
||||
free_irq(wl->irq, wl);
|
||||
|
||||
wl1271_unregister_hw(wl);
|
||||
wl1271_free_hw(wl);
|
||||
|
||||
return 0;
|
||||
|
Verwijs in nieuw issue
Block a user