usb: [MIPS] fix unresolved err() reference in host/ohci-pnx8550.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 1 May 2012 21:38:21 +0000 (17:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2012 22:36:09 +0000 (18:36 -0400)
Commit af4e1ee04026908086d7ed252db2619a8ceaa333 (usb-next)

    "USB: remove err() macro"

was preceeded by a tree-wide cleanup of users, however this
one squeaked through the cracks because it had whitespace
between the function name and the bracket for the args.

Map it onto dev_err, just like all the "pre-commits" made
in advance of af4e1ee04026, such as the example seen in
the commit d57b177208b6ec20cacd7321ee32ef02f9f9e7fa:

    "USB: ohci-xls.c: remove err() usage"

Build tested with the MIPS pnx8550-jbs_defconfig settings.

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-pnx8550.c

index f13d08f94d6b12706c6638e3acd41ca707f059a3..148d27d6a67cf49c4ed54743708d5ca4b2ee5c44 100644 (file)
@@ -157,7 +157,8 @@ ohci_pnx8550_start (struct usb_hcd *hcd)
                return ret;
 
        if ((ret = ohci_run (ohci)) < 0) {
-               err ("can't start %s", hcd->self.bus_name);
+               dev_err(hcd->self.controller, "can't start %s",
+                       hcd->self.bus_name);
                ohci_stop (hcd);
                return ret;
        }