OSDN Git Service

usb: cdns3: fix build when PM_SLEEP is not set
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 8 Dec 2020 19:55:35 +0000 (11:55 -0800)
committerPeter Chen <peter.chen@nxp.com>
Tue, 29 Dec 2020 04:36:13 +0000 (12:36 +0800)
commit28a25ba3e59263a66b2a2cd3e153351b2db2a6b6
tree2369c5254eeebaae32e3cd57a506ffdf6e31ed19
parent7650778e79b9daf09cfccb46445036ae0ea984ac
usb: cdns3: fix build when PM_SLEEP is not set

Fix build error when CONFIG_PM_SLEEP is not enabled by adding
stubs for the PM_SLEEP functions.

../drivers/usb/cdns3/cdns3-plat.c: In function ‘cdns3_controller_resume’:
../drivers/usb/cdns3/cdns3-plat.c:246:2: error: implicit declaration of function ‘cdns_resume’; did you mean ‘cdns_remove’? [-Werror=implicit-function-declaration]
  cdns_resume(cdns, !PMSG_IS_AUTO(msg));
  ^~~~~~~~~~~

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Peter Chen <peter.chen@nxp.com>
Cc: Pawel Laszczak <pawell@cadence.com>
Cc: Roger Quadros <rogerq@ti.com>
Cc: linux-usb@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/core.h