]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
[media] atmel-isi: Protect PM-only functions to kill warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 6 Sep 2015 10:08:49 +0000 (07:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:33:21 +0000 (17:33 -0300)
commit18baba64580fe78a46d652a638915518b2a1dc40
treeb194a71dec5eca29becbcd0da92f17889fcf48ae
parentf00ae754c536511055ed6162778be8348e093514
[media] atmel-isi: Protect PM-only functions to kill warning

If CONFIG_PM=n:

    drivers/media/platform/soc_camera/atmel-isi.c:1044: warning: 'atmel_isi_runtime_suspend' defined but not used
    drivers/media/platform/soc_camera/atmel-isi.c:1054: warning: 'atmel_isi_runtime_resume' defined but not used

Protect the unused functions by #ifdef CONFIG_PM to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c