USB: sa1111: get rid of nasty printk(KERN_DEBUG "%s: ...", __FILE__)
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jan 2012 10:39:57 +0000 (10:39 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 11:30:13 +0000 (11:30 +0000)
Use dev_dbg() instead, it's more friendly.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/usb/host/ohci-sa1111.c

index 50ebeb310fda1ad303938fcf28d31e44914a3ba7..e797f18acb3302fa2023be77aafc56921a436c28 100644 (file)
@@ -48,8 +48,7 @@ static int sa1111_start_hc(struct sa1111_dev *dev)
        unsigned int usb_rst = 0;
        int ret;
 
-       printk(KERN_DEBUG "%s: starting SA-1111 OHCI USB Controller\n",
-              __FILE__);
+       dev_dbg(&dev->dev, "starting SA-1111 OHCI USB Controller\n");
 
        if (machine_is_xp860() ||
            machine_has_neponset() ||
@@ -81,8 +80,7 @@ static void sa1111_stop_hc(struct sa1111_dev *dev)
 {
        unsigned int usb_rst;
 
-       printk(KERN_DEBUG "%s: stopping SA-1111 OHCI USB Controller\n",
-              __FILE__);
+       dev_dbg(&dev->dev, "stopping SA-1111 OHCI USB Controller\n");
 
        /*
         * Put the USB host controller into reset.