summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/zl10353.h
diff options
context:
space:
mode:
authorTrent Piepho2006-10-14 20:44:44 +0200
committerMauro Carvalho Chehab2006-11-03 04:49:40 +0100
commitc5dec9fb248e3318f30a26f9984b3b064053a77f (patch)
treea3138c37d75bcd419a44b7268db76b20ad053add /drivers/media/dvb/frontends/zl10353.h
parentV4L/DVB (4784): [saa7146_i2c] short_delay mode fixed for fast machines (diff)
downloadkernel-qcow2-linux-c5dec9fb248e3318f30a26f9984b3b064053a77f.tar.gz
kernel-qcow2-linux-c5dec9fb248e3318f30a26f9984b3b064053a77f.tar.xz
kernel-qcow2-linux-c5dec9fb248e3318f30a26f9984b3b064053a77f.zip
V4L/DVB (4751): Fix DBV_FE_CUSTOMISE for card drivers compiled into kernel
When a front-end is disabled, card drivers that use it are compiled with a stub version of the front-end's attach function. This way they have no references to the front-end's code and don't need it to be loaded. If a card driver is compiled into the kernel, and a front-end is a module, then that front-end is effectively disabled wrt the card driver. In this case, the card driver should get the stub version. This was not happening. The stub vs real attach function selection is changed so that when the front-end is a module the real attach function is only used if the card driver is a module as well. This means a module front-end will be supported by card drivers that are modules and not supported by card drivers compiled into the kernel. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.h')
-rw-r--r--drivers/media/dvb/frontends/zl10353.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.h b/drivers/media/dvb/frontends/zl10353.h
index 79a947215c4d..0bc0109737f1 100644
--- a/drivers/media/dvb/frontends/zl10353.h
+++ b/drivers/media/dvb/frontends/zl10353.h
@@ -36,7 +36,7 @@ struct zl10353_config
int parallel_ts;
};
-#if defined(CONFIG_DVB_ZL10353) || defined(CONFIG_DVB_ZL10353_MODULE)
+#if defined(CONFIG_DVB_ZL10353) || (defined(CONFIG_DVB_ZL10353_MODULE) && defined(MODULE))
extern struct dvb_frontend* zl10353_attach(const struct zl10353_config *config,
struct i2c_adapter *i2c);
#else