]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
omap_udc build fix
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 1 Nov 2007 09:00:06 +0000 (02:00 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 1 Nov 2007 09:00:06 +0000 (02:00 -0700)
This fixes some build errors ... unclear how this got past earlier tests.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
drivers/usb/gadget/omap_udc.c

index d41d33edce61491938a0c4dd75896499150b52a7..983337e8e0765df7d2e45ded9a685fb581545b04 100644 (file)
@@ -1241,14 +1241,14 @@ static void pullup_enable(struct omap_udc *udc)
        udc->gadget.dev.parent->power.power_state = PMSG_ON;
        udc->gadget.dev.power.power_state = PMSG_ON;
        UDC_SYSCON1_REG |= UDC_PULLUP_EN;
-       if (!gadget_is_otg(udc->gadget) && !cpu_is_omap15xx())
+       if (!gadget_is_otg(&udc->gadget) && !cpu_is_omap15xx())
                OTG_CTRL_REG |= OTG_BSESSVLD;
        UDC_IRQ_EN_REG = UDC_DS_CHG_IE;
 }
 
 static void pullup_disable(struct omap_udc *udc)
 {
-       if (!gadget_is_otg(udc->gadget) && !cpu_is_omap15xx())
+       if (!gadget_is_otg(&udc->gadget) && !cpu_is_omap15xx())
                OTG_CTRL_REG &= ~OTG_BSESSVLD;
        UDC_IRQ_EN_REG = UDC_DS_CHG_IE;
        UDC_SYSCON1_REG &= ~UDC_PULLUP_EN;
@@ -1386,7 +1386,7 @@ static void update_otg(struct omap_udc *udc)
 {
        u16     devstat;
 
-       if (!gadget_is_otg(udc->gadget))
+       if (!gadget_is_otg(&udc->gadget))
                return;
 
        if (OTG_CTRL_REG & OTG_ID)