]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/tea6415c.c
Merge linux-2.6 with linux-acpi-2.6
[~andy/linux] / drivers / media / video / tea6415c.c
index b44db8a7b94dfed4ca0e6e3c1acd03ad9c4465d0..ee3688348b662bac1dc06dc7be1893cd537f185d 100644 (file)
@@ -86,7 +86,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;
        }
@@ -200,7 +200,7 @@ static struct i2c_driver driver = {
 };
 
 static struct i2c_client client_template = {
-       I2C_DEVNAME("tea6415c"),
+       .name = "tea6415c",
        .driver = &driver,
 };