USB: ohci-ppc-soc.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:42 +0000 (11:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:42 +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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-ppc-soc.c

index 1514b706747060fe6d6e00e8f319400d2b0f6c54..185c39ed81b7e2418c18294daee4e250e5deb76e 100644 (file)
@@ -130,7 +130,8 @@ ohci_ppc_soc_start(struct usb_hcd *hcd)
                return ret;
 
        if ((ret = ohci_run(ohci)) < 0) {
-               err("can't start %s", ohci_to_hcd(ohci)->self.bus_name);
+               dev_err(hcd->self.controller, "can't start %s\n",
+                       hcd->self.bus_name);
                ohci_stop(hcd);
                return ret;
        }