diff options
| author | Arnd Bergmann <[email protected]> | 2016-09-12 12:32:57 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2016-09-19 16:25:13 -0300 |
| commit | 37f0644f3a5648e6c081587e05df0572e33c70a6 (patch) | |
| tree | 9acf4209014c02fe638c25ed8114ce3c8d76bf14 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 47d8e00ca3f9269498b4333d5c787f1442ebdbb6 (diff) | |
[media] ad5820: use __maybe_unused for PM functions
The new ad5820 driver uses #ifdef to hide the suspend/resume functions,
but gets it wrong when CONFIG_PM_SLEEP is disabled:
drivers/media/i2c/ad5820.c:286:12: error: 'ad5820_resume' defined but not used [-Werror=unused-function]
drivers/media/i2c/ad5820.c:274:12: error: 'ad5820_suspend' defined but not used [-Werror=unused-function]
This replaces the #ifdef with a __maybe_unused annotation that is
simpler and harder to get wrong, avoiding the warning.
Fixes: bee3d5115611 ("[media] ad5820: Add driver for auto-focus coil")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions