V4L/DVB (6794): Fix compilation when dib3000mc is compiled as a module
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / media / dvb / dvb-usb / dibusb-common.c
index b95b1eb1eba2c524e6ebb3d96c393df4e3aaa1e7..8ee6cd4da9e7c1053099792ef5ec0700bbd29ccf 100644 (file)
@@ -223,7 +223,9 @@ static struct dibx000_agc_config dib3000p_panasonic_agc_config = {
        .agc2_slope2 = 0x1e,
 };
 
-#ifdef CONFIG_DVB_DIB3000MC
+#if defined(CONFIG_DVB_DIB3000MC) ||                                   \
+       (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE))
+
 static struct dib3000mc_config mod3000p_dib3000p_config = {
        &dib3000p_panasonic_agc_config,