diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-11-19 09:37:53 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-25 09:47:04 -0500 |
commit | da9f3289c74f93b63c5ca741caa4e2d728ccafba (patch) | |
tree | 266a7486c30605a9df4dfffd58496010ee54c6d9 /drivers/usb/dwc2 | |
parent | 4db9917b641d18d24932ee2ec95b23a1e26c3f7e (diff) |
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>
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r-- | drivers/usb/dwc2/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index ec5658ac52ba..6a795aa2ff05 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c | |||
@@ -226,7 +226,7 @@ static int dwc2_driver_probe(struct platform_device *dev) | |||
226 | return retval; | 226 | return retval; |
227 | } | 227 | } |
228 | 228 | ||
229 | static int dwc2_suspend(struct device *dev) | 229 | static int __maybe_unused dwc2_suspend(struct device *dev) |
230 | { | 230 | { |
231 | struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); | 231 | struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); |
232 | int ret = 0; | 232 | int ret = 0; |
@@ -236,7 +236,7 @@ static int dwc2_suspend(struct device *dev) | |||
236 | return ret; | 236 | return ret; |
237 | } | 237 | } |
238 | 238 | ||
239 | static int dwc2_resume(struct device *dev) | 239 | static int __maybe_unused dwc2_resume(struct device *dev) |
240 | { | 240 | { |
241 | struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); | 241 | struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); |
242 | int ret = 0; | 242 | int ret = 0; |