Staging: winbond: Fix printk() should include KERN_ facility level in wb35rx.c
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Sun, 9 Mar 2014 18:36:21 +0000 (20:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 18:37:43 +0000 (11:37 -0700)
Fix checkpatch.pl issues with printk() should include
KERN_ facility level in wb35rx.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/winbond/wb35rx.c

index 86f8a7e2a91c692b0efa8e5760a5a4e346ef7a65..f006b166aebc7a578423bf9d79e3a04d2307e9b4 100644 (file)
@@ -261,7 +261,7 @@ static void Wb35Rx(struct ieee80211_hw *hw)
 
        pWb35Rx->pDRx = kzalloc(MAX_USB_RX_BUFFER, GFP_ATOMIC);
        if (!pWb35Rx->pDRx) {
-               printk("w35und: Rx memory alloc failed\n");
+               dev_info(&hw->wiphy->dev, "w35und: Rx memory alloc failed\n");
                goto error;
        }
        pRxBufferAddress = pWb35Rx->pDRx;
@@ -276,7 +276,7 @@ static void Wb35Rx(struct ieee80211_hw *hw)
        retv = usb_submit_urb(urb, GFP_ATOMIC);
 
        if (retv != 0) {
-               printk("Rx URB sending error\n");
+               dev_info(&hw->wiphy->dev, "Rx URB sending error\n");
                goto error;
        }
        return;