summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-shark.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2013-11-01 16:44:54 +0100
committerMauro Carvalho Chehab2013-11-07 18:03:14 +0100
commitc5b0b3cb8a2b6637d652cae73f00761a1bd6e66e (patch)
treef650a3e4eacf215852975714a588dd152d696ef8 /drivers/media/radio/radio-shark.c
parent[media] tda9887: remove an warning when compiling for alpha (diff)
downloadkernel-qcow2-linux-c5b0b3cb8a2b6637d652cae73f00761a1bd6e66e.tar.gz
kernel-qcow2-linux-c5b0b3cb8a2b6637d652cae73f00761a1bd6e66e.tar.xz
kernel-qcow2-linux-c5b0b3cb8a2b6637d652cae73f00761a1bd6e66e.zip
[media] radio-shark: remove a warning when CONFIG_PM is not defined
On alpha, allyesconfig doesn't have CONFIG_PM, and produces the following warnings: drivers/media/radio/radio-shark.c:274:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function] drivers/media/radio/radio-shark2.c:240:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function] That's because those functions are used only at device resume. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/radio/radio-shark.c')
-rw-r--r--drivers/media/radio/radio-shark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-shark.c b/drivers/media/radio/radio-shark.c
index b91477212413..3db8a8cfe1a8 100644
--- a/drivers/media/radio/radio-shark.c
+++ b/drivers/media/radio/radio-shark.c
@@ -271,6 +271,7 @@ static void shark_unregister_leds(struct shark_device *shark)
cancel_work_sync(&shark->led_work);
}
+#ifdef CONFIG_PM
static void shark_resume_leds(struct shark_device *shark)
{
if (test_bit(BLUE_IS_PULSE, &shark->brightness_new))
@@ -280,6 +281,7 @@ static void shark_resume_leds(struct shark_device *shark)
set_bit(RED_LED, &shark->brightness_new);
schedule_work(&shark->led_work);
}
+#endif
#else
static int shark_register_leds(struct shark_device *shark, struct device *dev)
{