Commit 5b570d43 authored by Gabriel C's avatar Gabriel C Committed by Greg Kroah-Hartman

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: default avatarGabriel Craciunescu <nix.or.die@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3aec6e26
...@@ -1520,12 +1520,15 @@ static void u132_hcd_endp_work_scheduler(struct work_struct *work) ...@@ -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) static void port_power(struct u132 *u132, int pn, int is_on)
{ {
u132->port[pn].power = is_on; u132->port[pn].power = is_on;
} }
#endif
static void u132_power(struct u132 *u132, int is_on) static void u132_power(struct u132 *u132, int is_on)
{ {
struct usb_hcd *hcd = u132_to_hcd(u132) struct usb_hcd *hcd = u132_to_hcd(u132)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment