]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: ohci-at91.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:39 +0000 (11:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 18:24:39 +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>
CC: Grant Likely <grant.likely@secretlab.ca>
CC: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c

index 13ebeca8e73e3e5f78f52b6001ebc3464f40a432..476fb4d3e45e1b6c2e06ac2db1aa0093ff4134ec 100644 (file)
@@ -235,7 +235,8 @@ ohci_at91_start (struct usb_hcd *hcd)
        ohci->num_ports = board->ports;
 
        if ((ret = ohci_run(ohci)) < 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);
                return ret;
        }