]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/tda9840.c
[PATCH] fix black/white-only svideo input in vpx3220 decoder
[~andy/linux] / drivers / media / video / tda9840.c
index c29bdfc3244e8f2562e9744d5f8d508f89a4b525..1794686612c6dccac93431e3b5f22f1f1c62f9f1 100644 (file)
@@ -205,7 +205,7 @@ static int detect(struct i2c_adapter *adapter, int address, int kind)
 static int attach(struct i2c_adapter *adapter)
 {
        /* let's see whether this is a know adapter we can attach to */
-       if (adapter->id != I2C_ALGO_SAA7146) {
+       if (adapter->id != I2C_HW_SAA7146) {
                dprintk("refusing to probe on unknown adapter [name='%s',id=0x%x]\n", adapter->name, adapter->id);
                return -ENODEV;
        }
@@ -231,7 +231,7 @@ static struct i2c_driver driver = {
 };
 
 static struct i2c_client client_template = {
-       I2C_DEVNAME("tda9840"),
+       .name = "tda9840",
        .driver = &driver,
 };