ChangeSet 1.2206, 2005/03/30 09:43:23-08:00, [EMAIL PROTECTED]

        [PATCH] Fix u32 vs. pm_message_t in USB
        
        This fixes (part of) u32 vs.  pm_message_t confusion in USB.  It should 
cause
        no code changes.
        
        Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 usb/core/hub.c        |    4 ++--
 usb/host/sl811-hcd.c  |    6 +++---
 video/aty/radeon_pm.c |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)


diff -Nru a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
--- a/drivers/usb/core/hub.c    2005-03-30 12:12:13 -08:00
+++ b/drivers/usb/core/hub.c    2005-03-30 12:12:13 -08:00
@@ -1646,7 +1646,7 @@
  *
  * Returns 0 on success, else negative errno.
  */
-int usb_suspend_device(struct usb_device *udev, u32 state)
+int usb_suspend_device(struct usb_device *udev, pm_message_t state)
 {
        int     port1, status;
 
@@ -1961,7 +1961,7 @@
 
 #else  /* !CONFIG_USB_SUSPEND */
 
-int usb_suspend_device(struct usb_device *udev, u32 state)
+int usb_suspend_device(struct usb_device *udev, pm_message_t state)
 {
        return 0;
 }
diff -Nru a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
--- a/drivers/usb/host/sl811-hcd.c      2005-03-30 12:12:13 -08:00
+++ b/drivers/usb/host/sl811-hcd.c      2005-03-30 12:12:13 -08:00
@@ -101,12 +101,12 @@
 
                sl811->port1 = (1 << USB_PORT_FEAT_POWER);
                sl811->irq_enable = SL11H_INTMASK_INSRMV;
-               hcd->self.controller->power.power_state = PM_SUSPEND_ON;
+               hcd->self.controller->power.power_state = PMSG_ON;
        } else {
                sl811->port1 = 0;
                sl811->irq_enable = 0;
                hcd->state = USB_STATE_HALT;
-               hcd->self.controller->power.power_state = PM_SUSPEND_DISK;
+               hcd->self.controller->power.power_state = PMSG_SUSPEND;
        }
        sl811->ctrl1 = 0;
        sl811_write(sl811, SL11H_IRQ_ENABLE, 0);
@@ -1772,7 +1772,7 @@
  */
 
 static int
-sl811h_suspend(struct device *dev, u32 state, u32 phase)
+sl811h_suspend(struct device *dev, pm_message_t state, u32 phase)
 {
        struct usb_hcd  *hcd = dev_get_drvdata(dev);
        struct sl811    *sl811 = hcd_to_sl811(hcd);
diff -Nru a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c
--- a/drivers/video/aty/radeon_pm.c     2005-03-30 12:12:13 -08:00
+++ b/drivers/video/aty/radeon_pm.c     2005-03-30 12:12:13 -08:00
@@ -2521,7 +2521,7 @@
 
 static/*extern*/ int susdisking = 0;
 
-int radeonfb_pci_suspend(struct pci_dev *pdev, u32 state)
+int radeonfb_pci_suspend(struct pci_dev *pdev, pm_message_t state)
 {
         struct fb_info *info = pci_get_drvdata(pdev);
         struct radeonfb_info *rinfo = info->par;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to