]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Fix build warning when CONFIG_PM_SLEEP=n
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 19 Nov 2014 14:37:53 +0000 (12:37 -0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 25 Nov 2014 14:47:04 +0000 (08:47 -0600)
commite92bd622691311fe0c445dec551bb969a034ef13
tree266a7486c30605a9df4dfffd58496010ee54c6d9
parenta5e050cea2366cbd165195a144468a6df79c47d0
usb: dwc2: Fix build warning when CONFIG_PM_SLEEP=n

Building with bcm2835_defconfig, which has CONFIG_PM_SLEEP=n causes the
following build warning:

drivers/usb/dwc2/platform.c:227:12: warning: 'dwc2_suspend' defined but not used [-Wunused-function]
drivers/usb/dwc2/platform.c:237:12: warning: 'dwc2_resume' defined but not used [-Wunused-function]

Annotate these functions with '__maybe_unused' to prevent the warnings.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/platform.c