aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/wm8775.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/wm8775.c')
-rw-r--r--drivers/media/video/wm8775.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/video/wm8775.c b/drivers/media/video/wm8775.c
index 7d90ae5a99bc..22f286222004 100644
--- a/drivers/media/video/wm8775.c
+++ b/drivers/media/video/wm8775.c
@@ -26,9 +26,9 @@
26#include <linux/ioctl.h> 26#include <linux/ioctl.h>
27#include <asm/uaccess.h> 27#include <asm/uaccess.h>
28#include <linux/i2c.h> 28#include <linux/i2c.h>
29#include <linux/i2c-id.h>
29#include <linux/videodev.h> 30#include <linux/videodev.h>
30#include <media/audiochip.h> 31#include <media/audiochip.h>
31#include <media/id.h>
32 32
33MODULE_DESCRIPTION("wm8775 driver"); 33MODULE_DESCRIPTION("wm8775 driver");
34MODULE_AUTHOR("Ulf Eklund"); 34MODULE_AUTHOR("Ulf Eklund");
@@ -204,14 +204,10 @@ static int wm8775_probe(struct i2c_adapter *adapter)
204{ 204{
205#ifdef I2C_CLASS_TV_ANALOG 205#ifdef I2C_CLASS_TV_ANALOG
206 if (adapter->class & I2C_CLASS_TV_ANALOG) 206 if (adapter->class & I2C_CLASS_TV_ANALOG)
207 return i2c_probe(adapter, &addr_data, wm8775_attach);
208#else 207#else
209 switch (adapter->id) { 208 if (adapter->id == I2C_HW_B_BT848)
210 case I2C_HW_B_BT848: 209#endif
211 return i2c_probe(adapter, &addr_data, tda9887_attach); 210 return i2c_probe(adapter, &addr_data, wm8775_attach);
212 }
213#endif /* I2C_CLASS_TV_ANALOG */
214
215 return 0; 211 return 0;
216} 212}
217 213