Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=038eb0ea04b245351be34b0ae76b55eee4603989
Commit:     038eb0ea04b245351be34b0ae76b55eee4603989
Parent:     42e6de0e6079f4a7ce6bd62340b1b14a1af314dc
Author:     Mirco Tischler <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 24 05:16:39 2008 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Feb 23 20:29:09 2008 -0800

    Fix u132-hcd.c compile error
    
    This fixes the following compile error caused by commit
    3a2d5b700132f35401f1d9e22fe3c2cab02c2549 ("PM: Introduce
    PM_EVENT_HIBERNATE callback state")
    
        CC [M]  drivers/usb/host/u132-hcd.o
      drivers/usb/host/u132-hcd.c: In function ‘u132_suspend’:
      drivers/usb/host/u132-hcd.c:3224: error: expected expression before ‘int’
      drivers/usb/host/u132-hcd.c:3225: error: ‘ports’ undeclared (first use in 
this function)
      ...
    
    Signed-off-by: Mirco Tischler <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/usb/host/u132-hcd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 6fca069..3033d69 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -3213,7 +3213,7 @@ static int u132_suspend(struct platform_device *pdev, 
pm_message_t state)
                 dev_err(&u132->platform_dev->dev, "device is being removed\n");
                 return -ESHUTDOWN;
         } else {
-                int retval = 0;
+               int retval = 0, ports;
 
                switch (state.event) {
                case PM_EVENT_FREEZE:
@@ -3221,7 +3221,7 @@ static int u132_suspend(struct platform_device *pdev, 
pm_message_t state)
                        break;
                case PM_EVENT_SUSPEND:
                case PM_EVENT_HIBERNATE:
-                        int ports = MAX_U132_PORTS;
+                       ports = MAX_U132_PORTS;
                         while (ports-- > 0) {
                                 port_power(u132, ports, 0);
                         }
-
To unsubscribe from this list: send the line "unsubscribe git-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