diff options
author | Jérémy Lefaure <[email protected]> | 2017-02-01 21:30:24 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-02-03 10:05:11 +0100 |
commit | 1ef2bcefa21d1c0c61bfce1f994a0fcd12ab40e7 (patch) | |
tree | 7c769104cad835c06f9ffd01f499109f3cc08456 /scripts/gdb/linux/proc.py | |
parent | 45abfa683bec97427078d5c122c2166fb989a03a (diff) |
usb: musb: blackfin: fix unused warnings on suspend/resume
When CONFIG_PM_SLEEP is disabled, SIMPLE_DEV_PM_OPS does not use
bfin_resume and bfin_suspend even if CONFIG_PM is enabled:
drivers/usb/musb/blackfin.c:602:12: warning: ‘bfin_resume’ defined but
not used [-Wunused-function]
static int bfin_resume(struct device *dev)
^~~~~~~~~~~
drivers/usb/musb/blackfin.c:585:12: warning: ‘bfin_suspend’ defined but
not used [-Wunused-function]
static int bfin_suspend(struct device *dev)
^~~~~~~~~~~~
The preprocessor condition should be on CONFIG_PM_SLEEP, not on CONFIG_PM.
However it is better to mark these functions as __maybe_unused.
Signed-off-by: Jérémy Lefaure <[email protected]>
Signed-off-by: Bin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions