USB: ohci-ps3.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:43 +0000 (11:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:43 +0000 (11:24 -0700)
err() was a very old USB-specific macro that I thought had
gone away.  This patch removes it from being used in the
driver and uses dev_err() instead.

CC: Geoff Levand <geoff@infradead.org>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-ps3.c

index 6fd4fa1f19bb44e9b0c689e171b0a78eb1468fb8..2ee1d8d713d23dff7b9c82f827a1ebd2632e8e45 100644 (file)
@@ -45,7 +45,8 @@ static int __devinit ps3_ohci_hc_start(struct usb_hcd *hcd)
        result = ohci_run(ohci);
 
        if (result < 0) {
-               err("can't start %s", hcd->self.bus_name);
+               dev_err(hcd->self.controller, "can't start %s\n",
+                       hcd->self.bus_name);
                ohci_stop(hcd);
        }