V4L/DVB: tlg2300: cleanups when power management is not configured
authorMárton Németh <nm127@freemail.hu>
Sun, 28 Feb 2010 14:19:47 +0000 (11:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:24 +0000 (00:46 -0300)
When power management is not configured (CONFIG_PM) then some code is no longer
necessary.

This patch will remove the following compiler warnings:
 * pd-dvb.c: In function 'poseidon_fe_release':
 * pd-dvb.c:101: warning: unused variable 'pd'
 * pd-video.c:14: warning: 'pm_video_suspend' declared 'static' but never defined
 * pd-video.c:15: warning: 'pm_video_resume' declared 'static' but never defined

Signed-off-by: Márton Németh <nm127@freemail.hu>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tlg2300/pd-dvb.c
drivers/media/video/tlg2300/pd-video.c

index ebd9cb5bec7429c6251bec628cd91d501796d9ec..edd78f8b1baa4ee390d7b9a7ebc475ee567844e6 100644 (file)
@@ -97,15 +97,17 @@ open_out:
        return ret;
 }
 
+#ifdef CONFIG_PM
 static void poseidon_fe_release(struct dvb_frontend *fe)
 {
        struct poseidon *pd = fe->demodulator_priv;
 
-#ifdef CONFIG_PM
        pd->pm_suspend = NULL;
        pd->pm_resume  = NULL;
-#endif
 }
+#else
+#define poseidon_fe_release NULL
+#endif
 
 static s32 poseidon_fe_sleep(struct dvb_frontend *fe)
 {
index cf8f18c007e6cdd65e883f873743f415fbd895f7..ed5cb1818adcc843ef8f1218e55ebfb33b8f299c 100644 (file)
 #include "pd-common.h"
 #include "vendorcmds.h"
 
+#ifdef CONFIG_PM
 static int pm_video_suspend(struct poseidon *pd);
 static int pm_video_resume(struct poseidon *pd);
+#endif
 static void iso_bubble_handler(struct work_struct *w);
 
 int usb_transfer_mode;