diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-03-05 21:30:10 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 23:09:27 +0100 |
commit | 2ac710720c523dd243662746da4381dd4f1772f8 (patch) | |
tree | b57dc667249ee4cbacbcc8f33686637ee3c304b2 /drivers/net/wireless/p54/p54spi.c | |
parent | p54usb: stop USB core interference in exit path (diff) | |
download | linux-2ac710720c523dd243662746da4381dd4f1772f8.tar.xz linux-2ac710720c523dd243662746da4381dd4f1772f8.zip |
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/p54spi.c')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 7fde243b3d5d..2b222aaa6f0a 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c @@ -694,15 +694,10 @@ static int __devinit p54spi_probe(struct spi_device *spi) if (ret) goto err_free_common; - ret = ieee80211_register_hw(hw); - if (ret) { - dev_err(&priv->spi->dev, "unable to register " - "mac80211 hw: %d", ret); + ret = p54_register_common(hw, &priv->spi->dev); + if (ret) goto err_free_common; - } - dev_info(&priv->spi->dev, "device is bound to %s\n", - wiphy_name(hw->wiphy)); return 0; err_free_common: |