p54: unify ieee80211 device registration
All three drivers (p54pci, p54usb and p54spi) are implementing the same functionality three times. So, why not put it into the shared library?! Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
fbf95296c1
commit
2ac710720c
@@ -565,12 +565,9 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
|
||||
if (err)
|
||||
goto err_free_common;
|
||||
|
||||
err = ieee80211_register_hw(dev);
|
||||
if (err) {
|
||||
printk(KERN_ERR "%s (p54pci): Cannot register netdevice\n",
|
||||
pci_name(pdev));
|
||||
err = p54_register_common(dev, &pdev->dev);
|
||||
if (err)
|
||||
goto err_free_common;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user