Fix an error in dummy_hcd after the platform device conversion.

Signed-off-by: Richard Purdie <[EMAIL PROTECTED]>

Index: linux-2.6.14/drivers/usb/gadget/dummy_hcd.c
===================================================================
--- linux-2.6.14.orig/drivers/usb/gadget/dummy_hcd.c    2005-11-12 
10:55:38.000000000 +0000
+++ linux-2.6.14/drivers/usb/gadget/dummy_hcd.c 2005-11-12 12:14:25.000000000 
+0000
@@ -944,7 +944,7 @@
        set_link_state (dum);
        spin_unlock_irq (&dum->lock);
 
-       dev->power.power_state = state;
+       dev->dev.power.power_state = state;
        usb_hcd_poll_rh_status (dummy_to_hcd (dum));
        return 0;
 }
@@ -1904,7 +1904,7 @@
        struct usb_hcd          *hcd;
        int                     retval;
 
-       dev_info (dev, "%s, driver " DRIVER_VERSION "\n", driver_desc);
+       dev_info (&dev->dev, "%s, driver " DRIVER_VERSION "\n", driver_desc);
 
        hcd = usb_create_hcd (&dummy_hcd, &dev->dev, dev->dev.bus_id);
        if (!hcd)



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to