linux-mips
[Top] [All Lists]

[patch 7/8] au1xxx: compile fixes for OHCI for au1200

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [patch 7/8] au1xxx: compile fixes for OHCI for au1200
From: Domen Puncer <domen.puncer@ultra.si>
Date: Fri, 23 Jun 2006 12:01:21 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <20060623095703.GA30980@domen.ultra.si>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060623095703.GA30980@domen.ultra.si>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060126
Compile fixes for au1200 ohci.

First part looks a bit hackish... but it works for me.


Signed-off-by: Domen Puncer <domen.puncer@ultra.si>

Index: linux-mailed/drivers/usb/host/ohci-au1xxx.c
===================================================================
--- linux-mailed.orig/drivers/usb/host/ohci-au1xxx.c
+++ linux-mailed/drivers/usb/host/ohci-au1xxx.c
@@ -101,9 +101,11 @@ static void au1xxx_start_ohc(struct plat
 
 #endif  /* Au1200 */
 
+#ifndef CONFIG_SOC_AU1200
        /* wait for reset complete (read register twice; see au1500 errata) */
        while (au_readl(USB_HOST_CONFIG),
                !(au_readl(USB_HOST_CONFIG) & USBH_ENABLE_RD))
+#endif
                udelay(1000);
 
        printk(KERN_DEBUG __FILE__
@@ -157,9 +159,9 @@ static int usb_ohci_au1xxx_probe(const s
        /* Au1200 AB USB does not support coherent memory */
        if (!(read_c0_prid() & 0xff)) {
                pr_info("%s: this is chip revision AB !!\n",
-                       dev->dev.name);
+                       dev->name);
                pr_info("%s: update your board or re-configure the kernel\n",
-                       dev->dev.name);
+                       dev->name);
                return -ENODEV;
        }
 #endif

<Prev in Thread] Current Thread [Next in Thread>