diff options
| author | Arnd Bergmann <[email protected]> | 2025-04-23 16:26:09 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-04-25 11:22:00 +0000 |
| commit | 45ebb7baf2356c3d9118c40216ad5b3d0d516b15 (patch) | |
| tree | a59c65b75fcbf28e35772453cd4e097677742fec /drivers/fpga/tests/fpga-region-test.c | |
| parent | dt-bindings: usb: usb-device: relax compatible pattern to a contains (diff) | |
| download | kernel-45ebb7baf2356c3d9118c40216ad5b3d0d516b15.tar.gz kernel-45ebb7baf2356c3d9118c40216ad5b3d0d516b15.zip | |
usb: dwc3: qcom: use modern PM macros
The use of the old SET_SYSTEM_SLEEP_PM_OPS/SET_RUNTIME_PM_OPS macros
without __maybe_unused annotations causes warnings when build testing
without CONFIG_PM:
drivers/usb/dwc3/dwc3-qcom.c:421:12: error: unused function 'dwc3_qcom_suspend' [-Werror,-Wunused-function]
421 | static int dwc3_qcom_suspend(struct dwc3_qcom *qcom, bool wakeup)
| ^~~~~~~~~~~~~~~~~
drivers/usb/dwc3/dwc3-qcom.c:457:12: error: unused function 'dwc3_qcom_resume' [-Werror,-Wunused-function]
457 | static int dwc3_qcom_resume(struct dwc3_qcom *qcom, bool wakeup)
Change these to the modern SYSTEM_SLEEP_PM_OPS/RUNTIME_PM_OPS/pm_ptr
macros, which avoids the warnings and improves readability at the same
time.
Fixes: 1881a32fe14d ("usb: dwc3: qcom: Transition to flattened model")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Abel Vesa <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions
