summaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon-usb
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-04-28 13:10:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-28 14:27:26 +0200
commit5795a9a5fed75a729444f9d83fab597ec131d282 (patch)
tree4d4fe753380a1289995dad75de8a895ae45a1917 /drivers/staging/octeon-usb
parent5162e1ae0c58dcf98ae322a92d60360142d0ae00 (diff)
staging: atomisp: remove #ifdef for runtime PM functions
The runtime power management functions are called from the reset handler even if CONFIG_PM is disabled, leading to a link error: drivers/staging/built-in.o: In function `atomisp_reset': (.text+0x4cd1c): undefined reference to `atomisp_runtime_suspend' drivers/staging/built-in.o: In function `atomisp_reset': (.text+0x4cd3a): undefined reference to `atomisp_mrfld_power_down' drivers/staging/built-in.o: In function `atomisp_reset': (.text+0x4cd58): undefined reference to `atomisp_mrfld_power_up' drivers/staging/built-in.o: In function `atomisp_reset': (.text+0x4cd77): undefined reference to `atomisp_runtime_resume' Removing the #ifdef around the PM functions avoids the problem, and lets us simplify it further. The __maybe_unused annotation is needed to ensure the compiler can silently drop the unused callbacks. Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb')
0 files changed, 0 insertions, 0 deletions