mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 06:32:50 +00:00
V4L/DVB: tlg2300: cleanups when power management is not configured
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>
This commit is contained in:
parent
d044189dfe
commit
6c9eaa82da
@ -97,15 +97,17 @@ open_out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static void poseidon_fe_release(struct dvb_frontend *fe)
|
static void poseidon_fe_release(struct dvb_frontend *fe)
|
||||||
{
|
{
|
||||||
struct poseidon *pd = fe->demodulator_priv;
|
struct poseidon *pd = fe->demodulator_priv;
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
|
||||||
pd->pm_suspend = NULL;
|
pd->pm_suspend = NULL;
|
||||||
pd->pm_resume = NULL;
|
pd->pm_resume = NULL;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define poseidon_fe_release NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
static s32 poseidon_fe_sleep(struct dvb_frontend *fe)
|
static s32 poseidon_fe_sleep(struct dvb_frontend *fe)
|
||||||
{
|
{
|
||||||
|
@ -12,8 +12,10 @@
|
|||||||
#include "pd-common.h"
|
#include "pd-common.h"
|
||||||
#include "vendorcmds.h"
|
#include "vendorcmds.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static int pm_video_suspend(struct poseidon *pd);
|
static int pm_video_suspend(struct poseidon *pd);
|
||||||
static int pm_video_resume(struct poseidon *pd);
|
static int pm_video_resume(struct poseidon *pd);
|
||||||
|
#endif
|
||||||
static void iso_bubble_handler(struct work_struct *w);
|
static void iso_bubble_handler(struct work_struct *w);
|
||||||
|
|
||||||
int usb_transfer_mode;
|
int usb_transfer_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user