[media] media: pci: smipcie: Fix dependency for DVB_SMIPCIE
authorAndreas Ruprecht <rupran@einserver.de>
Fri, 21 Nov 2014 18:23:28 +0000 (15:23 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Nov 2014 18:44:25 +0000 (16:44 -0200)
In smipcie.c, the function i2c_bit_add_bus() is called. This
function is defined by the I2C bit-banging interfaces enabled
with CONFIG_I2C_ALGOBIT.

As there was no dependency in Kconfig, CONFIG_I2C_ALGOBIT could
be set to "m" while CONFIG_DVB_SMIPCIE was set to "y", resulting
in a build error due to an undefined reference.

This patch adds the dependency on CONFIG_I2C_ALGOBIT in Kconfig
by selecting it when CONFIG_DVB_SMIPCIE is selected.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/smipcie/Kconfig

index 75a2992..57dd124 100644 (file)
@@ -1,6 +1,7 @@
 config DVB_SMIPCIE
        tristate "SMI PCIe DVBSky cards"
        depends on DVB_CORE && PCI && I2C
+       select I2C_ALGOBIT
        select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT
        select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT
        select MEDIA_TUNER_M88RS6000T if MEDIA_SUBDRV_AUTOSELECT