ChangeSet 1.2020.1.36, 2005/03/07 22:54:20-08:00, [EMAIL PROTECTED]

[PATCH] USB: fix types in usb suspend

This fixes types in USB w.r.t. driver model. It should not actually
change any code. Please apply,


From: Bernard Blackham <[EMAIL PROTECTED]>
Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/core/hub.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


diff -Nru a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
--- a/drivers/usb/core/hub.c    2005-03-08 16:52:52 -08:00
+++ b/drivers/usb/core/hub.c    2005-03-08 16:52:52 -08:00
@@ -1234,10 +1234,10 @@
                 */
                if (udev->bus->b_hnp_enable || udev->bus->is_b_host) {
                        static int __usb_suspend_device (struct usb_device *,
-                                               int port1, u32 state);
+                                               int port1, pm_message_t state);
                        err = __usb_suspend_device(udev,
                                        udev->bus->otg_port,
-                                       PM_SUSPEND_MEM);
+                                       PMSG_SUSPEND);
                        if (err < 0)
                                dev_dbg(&udev->dev, "HNP fail, %d\n", err);
                }
@@ -1525,7 +1525,7 @@
  * Linux (2.6) currently has NO mechanisms to initiate that:  no khubd
  * timer, no SRP, no requests through sysfs.
  */
-int __usb_suspend_device (struct usb_device *udev, int port1, u32 state)
+int __usb_suspend_device (struct usb_device *udev, int port1, pm_message_t 
state)
 {
        int     status;
 
@@ -1623,7 +1623,7 @@
 /**
  * usb_suspend_device - suspend a usb device
  * @udev: device that's no longer in active use
- * @state: PM_SUSPEND_MEM to suspend
+ * @state: PMSG_SUSPEND to suspend
  * Context: must be able to sleep; device not locked
  *
  * Suspends a USB device that isn't in active use, conserving power.
@@ -1672,7 +1672,7 @@
        usb_set_device_state(udev, udev->actconfig
                        ? USB_STATE_CONFIGURED
                        : USB_STATE_ADDRESS);
-       udev->dev.power.power_state = PM_SUSPEND_ON;
+       udev->dev.power.power_state = PMSG_ON;
 
        /* 10.5.4.5 says be sure devices in the tree are still there.
         * For now let's assume the device didn't go crazy on resume,
@@ -1873,7 +1873,7 @@
        return status;
 }
 
-static int hub_suspend(struct usb_interface *intf, u32 state)
+static int hub_suspend(struct usb_interface *intf, pm_message_t state)
 {
        struct usb_hub          *hub = usb_get_intfdata (intf);
        struct usb_device       *hdev = hub->hdev;
@@ -1945,7 +1945,7 @@
                }
                up(&udev->serialize);
        }
-       intf->dev.power.power_state = PM_SUSPEND_ON;
+       intf->dev.power.power_state = PMSG_ON;
 
        hub_activate(hub);
        return 0;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to