USB: fix build error with CONFIG_PM_RUNTIME disabled
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Aug 2014 23:55:29 +0000 (16:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:28:37 +0000 (16:28 -0700)
commit3d81c4733b6b25c0b99c3c3c16cfd93183c27b03
treeb2b8fe28baae65303a89c98853bd49b369cb8111
parent569ae35a436502bf1aaaa7391b94e1d04b61ffca
USB: fix build error with CONFIG_PM_RUNTIME disabled

commit a9ef803d740bfadf5e505fbc57efa57692e27025 upstream.

commit bdd405d2a528 ("usb: hub: Prevent hub autosuspend if
usbcore.autosuspend is -1") causes a build error if CONFIG_PM_RUNTIME is
disabled.  Fix that by doing a simple #ifdef guard around it.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Roger Quadros <rogerq@ti.com>
Cc: Michael Welling <mwelling@emacinc.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c