mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
db2d55b7f7
commit
9a7834d06d
3 changed files with 13 additions and 15 deletions
|
|
@ -2652,8 +2652,6 @@ static void hub_events(void)
|
|||
* stub "device" node was never suspended.
|
||||
*/
|
||||
if (i) {
|
||||
extern void dpm_runtime_resume(struct device *);
|
||||
|
||||
dpm_runtime_resume(&hdev->dev);
|
||||
dpm_runtime_resume(&intf->dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue