Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5b570d43cea0f5a6aa5bec2da2a0f68b96a37346
Commit:     5b570d43cea0f5a6aa5bec2da2a0f68b96a37346
Parent:     3aec6e26d7655eea07be8bbec4728447274ed43f
Author:     Gabriel C <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 30 12:57:03 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 14:27:44 2007 -0700

    USB: u132-hcd.c - Fix a warning when CONFIG_PM=n
    
    I noticed this warning with CONFING_PM=n
    
    ...
    
    drivers/usb/host/u132-hcd.c:1525: warning: 'port_power' defined but not used
    
    ...
    
    Signed-off-by: Gabriel Craciunescu <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/host/u132-hcd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 7f765ec..b88eb3c 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -1520,12 +1520,15 @@ static void u132_hcd_endp_work_scheduler(struct 
work_struct *work)
                 }
         }
 }
+#ifdef CONFIG_PM
 
 static void port_power(struct u132 *u132, int pn, int is_on)
 {
         u132->port[pn].power = is_on;
 }
 
+#endif
+
 static void u132_power(struct u132 *u132, int is_on)
 {
         struct usb_hcd *hcd = u132_to_hcd(u132)
-
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