usb: xhci: avoid warning for !PM_SLEEP
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 May 2014 13:52:19 +0000 (15:52 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:47 +0000 (11:14 +0100)
commitf5a0ece1da5aeb8073135ebd96d1f3717e333f3c
tree641e440beedf7c5cf1bb985d8addef5a7e45ebad
parenteafe96337f8e0a73be6c75bdc09ca45e2815a232
usb: xhci: avoid warning for !PM_SLEEP

If we build a kernel with PM_SUSPEND set and no PM_SLEEP,
we get a build warning in the xhci-plat driver about unused
functions.

To fix this, use "#ifdef CONFIG_PM_SLEEP", like we do in most
other drivers nowadays.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mathias Nyman <mathias.nyman@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 274f6afa298791df97fd37b7bc9d8327f5cf6ee9)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/usb/host/xhci-plat.c