]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/ath/ath9k/htc_drv_init.c
ath: Add and use pr_fmt, convert printks to pr_<level>
[~andy/linux] / drivers / net / wireless / ath / ath9k / htc_drv_init.c
index de5ee15ee639f7964509c679580cadb2b3d95417..a2e939a280aab591504ac421d24ff9f296008f13 100644 (file)
@@ -14,6 +14,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include "htc.h"
 
 MODULE_AUTHOR("Atheros Communications");
@@ -966,9 +968,7 @@ int ath9k_htc_resume(struct htc_target *htc_handle)
 static int __init ath9k_htc_init(void)
 {
        if (ath9k_hif_usb_init() < 0) {
-               printk(KERN_ERR
-                       "ath9k_htc: No USB devices found,"
-                       " driver not installed.\n");
+               pr_err("No USB devices found, driver not installed\n");
                return -ENODEV;
        }
 
@@ -979,6 +979,6 @@ module_init(ath9k_htc_init);
 static void __exit ath9k_htc_exit(void)
 {
        ath9k_hif_usb_exit();
-       printk(KERN_INFO "ath9k_htc: Driver unloaded\n");
+       pr_info("Driver unloaded\n");
 }
 module_exit(ath9k_htc_exit);