summaryrefslogtreecommitdiffstats
path: root/drivers/staging/cxd2099
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2011-01-18 01:18:02 +0100
committerMauro Carvalho Chehab2011-03-22 00:31:48 +0100
commitdbf05b279b8ed398a8e92b0c1187882f6df2bf7f (patch)
tree82a1bd4d8cd9385999d28c22ad07cba5364adc3b /drivers/staging/cxd2099
parent[media] Move CI cxd2099 driver to staging (diff)
downloadkernel-qcow2-linux-dbf05b279b8ed398a8e92b0c1187882f6df2bf7f.tar.gz
kernel-qcow2-linux-dbf05b279b8ed398a8e92b0c1187882f6df2bf7f.tar.xz
kernel-qcow2-linux-dbf05b279b8ed398a8e92b0c1187882f6df2bf7f.zip
[media] ngene: Fix compilation when cxd2099 is not enabled
drivers/media/dvb/ngene/ngene-i2c.o: In function `cxd2099_attach': ngene-i2c.c:(.text+0x195): multiple definition of `cxd2099_attach' drivers/media/dvb/ngene/ngene-core.o:ngene-core.c:(.text+0x100): first defined here drivers/media/dvb/ngene/ngene-cards.o: In function `cxd2099_attach': ngene-cards.c:(.text+0x116): multiple definition of `cxd2099_attach' drivers/media/dvb/ngene/ngene-core.o:ngene-core.c:(.text+0x100): first defined here drivers/media/dvb/ngene/ngene-dvb.o: In function `cxd2099_attach': ngene-dvb.c:(.text+0x7ad): multiple definition of `cxd2099_attach' drivers/media/dvb/ngene/ngene-core.o:ngene-core.c:(.text+0x100): first defined here Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/cxd2099')
-rw-r--r--drivers/staging/cxd2099/cxd2099.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/cxd2099/cxd2099.h b/drivers/staging/cxd2099/cxd2099.h
index a313dc26b962..bed54ff3e30b 100644
--- a/drivers/staging/cxd2099/cxd2099.h
+++ b/drivers/staging/cxd2099/cxd2099.h
@@ -31,7 +31,7 @@
(defined(CONFIG_DVB_CXD2099_MODULE) && defined(MODULE))
struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c);
#else
-struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c)
+static inline struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;