diff options
author | Gabor Juhos | 2009-01-14 20:17:07 +0100 |
---|---|---|
committer | John W. Linville | 2009-01-29 22:00:32 +0100 |
commit | 09329d371e57ff9fcb645b8e2cdee1ec8b9b539f (patch) | |
tree | 09fa81d882f87345dbe15c0ac07b1a3db4c05615 /drivers/net/wireless/ath9k/main.c | |
parent | ath9k: move PCI code into separate file (diff) | |
download | kernel-qcow2-linux-09329d371e57ff9fcb645b8e2cdee1ec8b9b539f.tar.gz kernel-qcow2-linux-09329d371e57ff9fcb645b8e2cdee1ec8b9b539f.tar.xz kernel-qcow2-linux-09329d371e57ff9fcb645b8e2cdee1ec8b9b539f.zip |
ath9k: introduce platform driver for AHB bus support
This patch adds the platform_driver itself, and modifies the main driver
to register it.
Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Tested-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 6257790e49da..7f4d1bbaf6c8 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c @@ -2527,8 +2527,17 @@ static int __init ath9k_init(void) goto err_rate_unregister; } + error = ath_ahb_init(); + if (error < 0) { + error = -ENODEV; + goto err_pci_exit; + } + return 0; + err_pci_exit: + ath_pci_exit(); + err_rate_unregister: ath_rate_control_unregister(); err_out: @@ -2538,6 +2547,7 @@ module_init(ath9k_init); static void __exit ath9k_exit(void) { + ath_ahb_exit(); ath_pci_exit(); ath_rate_control_unregister(); printk(KERN_INFO "%s: Driver unloaded\n", dev_info); |