staging: media: atomisp: fix build errors when PM is disabled
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Tue, 21 Mar 2017 02:48:26 +0000 (22:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:40:59 +0000 (08:40 +0100)
commit447a7f934e82284bc0cd3270f6491412fcab3f6d
treee150a25c925db72d2b83724a5b5fc8aa39e80ce6
parent435ec8afa59e28b4bcf2933da86b2c32fa326f8c
staging: media: atomisp: fix build errors when PM is disabled

The function atomisp_restore_iumit_reg is unused when PM is disabled.
Adding __maybe_unused to the function definition avoids a warning.

The function atomisp_mrfld_power_down is defined only when PM is
enabled. So in atomisp_pci_probe, it should be called only when PM is
enabled.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c