aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54usb.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2009-03-05 15:30:10 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:27 -0400
commit2ac710720c523dd243662746da4381dd4f1772f8 (patch)
treeb57dc667249ee4cbacbcc8f33686637ee3c304b2 /drivers/net/wireless/p54/p54usb.c
parentfbf95296c1c8b1ba09bdea0438ce2c61e0e3be5d (diff)
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>
Diffstat (limited to 'drivers/net/wireless/p54/p54usb.c')
-rw-r--r--drivers/net/wireless/p54/p54usb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c
index 3b5e54e6793d..da6640afc835 100644
--- a/drivers/net/wireless/p54/p54usb.c
+++ b/drivers/net/wireless/p54/p54usb.c
@@ -976,11 +976,9 @@ static int __devinit p54u_probe(struct usb_interface *intf,
976 if (err) 976 if (err)
977 goto err_free_dev; 977 goto err_free_dev;
978 978
979 err = ieee80211_register_hw(dev); 979 err = p54_register_common(dev, &udev->dev);
980 if (err) { 980 if (err)
981 dev_err(&udev->dev, "(p54usb) Cannot register netdevice\n");
982 goto err_free_dev; 981 goto err_free_dev;
983 }
984 982
985 return 0; 983 return 0;
986 984