USB: u132-hcd.c - Fix a warning when CONFIG_PM=n

From: Gabriel C
Date: Mon Jul 30 2007 - 06:57:03 EST



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 <nix.or.die@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/usb/host/u132-hcd.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -1519,12 +1519,15 @@ static void u132_hcd_endp_work_scheduler
}
}
}
+#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)


Patches currently in gregkh-2.6 which might be from nix.or.die@xxxxxxxxxxxxxx are

usb/usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/