pci.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | pci.c (516304b0f45614fb8967dc86ff681499204cdbb1) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 |
17#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 18 |
|
17#include <linux/nl80211.h> 18#include <linux/pci.h> 19#include <linux/pci-aspm.h> 20#include <linux/etherdevice.h> 21#include <linux/module.h> 22#include "../ath.h" 23#include "ath5k.h" 24#include "debug.h" --- 317 unchanged lines hidden (view full) --- 342 */ 343static int __init 344init_ath5k_pci(void) 345{ 346 int ret; 347 348 ret = pci_register_driver(&ath5k_pci_driver); 349 if (ret) { | 19#include <linux/nl80211.h> 20#include <linux/pci.h> 21#include <linux/pci-aspm.h> 22#include <linux/etherdevice.h> 23#include <linux/module.h> 24#include "../ath.h" 25#include "ath5k.h" 26#include "debug.h" --- 317 unchanged lines hidden (view full) --- 344 */ 345static int __init 346init_ath5k_pci(void) 347{ 348 int ret; 349 350 ret = pci_register_driver(&ath5k_pci_driver); 351 if (ret) { |
350 printk(KERN_ERR "ath5k_pci: can't register pci driver\n"); | 352 pr_err("pci: can't register pci driver\n"); |
351 return ret; 352 } 353 354 return 0; 355} 356 357static void __exit 358exit_ath5k_pci(void) 359{ 360 pci_unregister_driver(&ath5k_pci_driver); 361} 362 363module_init(init_ath5k_pci); 364module_exit(exit_ath5k_pci); | 353 return ret; 354 } 355 356 return 0; 357} 358 359static void __exit 360exit_ath5k_pci(void) 361{ 362 pci_unregister_driver(&ath5k_pci_driver); 363} 364 365module_init(init_ath5k_pci); 366module_exit(exit_ath5k_pci); |