aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-10-24 02:02:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:52 -0400
commit9a7834d06d553d02cc6e659e94772f69a8b5367f (patch)
tree9ca891740becd9a090565bc3d73f8da2c2ea54d3 /drivers/usb
parentdb2d55b7f7f11823b8d2e5f0c706c7a264320d1b (diff)
[PATCH] USB: fix pm patches with CONFIG_PM off part 2
With CONFIG_PM=n: drivers/built-in.o(.text+0x1098c): In function `hub_thread': drivers/usb/core/hub.c:2673: undefined reference to `.dpm_runtime_resume' drivers/built-in.o(.text+0x10998):drivers/usb/core/hub.c:2674: undefined reference to `.dpm_runtime_resume' Please, never ever ever put extern decls into .c files. Use the darn header files :( Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 1bacb374b007..9660a8909b7c 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2652,8 +2652,6 @@ static void hub_events(void)
2652 * stub "device" node was never suspended. 2652 * stub "device" node was never suspended.
2653 */ 2653 */
2654 if (i) { 2654 if (i) {
2655 extern void dpm_runtime_resume(struct device *);
2656
2657 dpm_runtime_resume(&hdev->dev); 2655 dpm_runtime_resume(&hdev->dev);
2658 dpm_runtime_resume(&intf->dev); 2656 dpm_runtime_resume(&intf->dev);
2659 } 2657 }