V4L/DVB (10144): cx24116: build fix
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 30 Dec 2008 19:40:00 +0000 (16:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 2 Jan 2009 19:12:12 +0000 (17:12 -0200)
Add missed MODULE check to eliminate inapropriate
declaration being choosed which causes a build error.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cx24116.h

index 4cb3ddd6c6261f7ce3c15d96550b2c56832ce651..b1b76b47a14cf2c97941a0e5721c85541742c645 100644 (file)
@@ -37,7 +37,8 @@ struct cx24116_config {
        u8 mpg_clk_pos_pol:0x02;
 };
 
-#if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE)
+#if defined(CONFIG_DVB_CX24116) || \
+       (defined(CONFIG_DVB_CX24116_MODULE) && defined(MODULE))
 extern struct dvb_frontend *cx24116_attach(
        const struct cx24116_config *config,
        struct i2c_adapter *i2c);