V4L/DVB: [nGene] Trivial I2C related fixes/cleanups
authorManu Abraham <abraham.manu@gmail.com>
Sat, 26 Dec 2009 19:56:26 +0000 (16:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:54 +0000 (15:10 -0300)
Trivial I2C related fixes/cleanups
 - Remove Unused I2C ID
 - point the I2C device to the physical device

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/ngene/ngene-core.c

index 6f1b06618147dd90defb95ac093289f98cb19e38..1c86edd908fdd67bb85e73708a0cc3fd59175be4 100644 (file)
@@ -828,9 +828,9 @@ static int ngene_i2c_init(struct ngene *dev, int dev_nr)
 
        strcpy(adap->name, "nGene");
 
-       adap->id = I2C_HW_SAA7146;
        adap->algo = &ngene_i2c_algo;
        adap->algo_data = (void *)&(dev->channel[dev_nr]);
+       adap->dev.parent = &dev->pci_dev->dev;
 
        mutex_init(&adap->bus_lock);
        return i2c_add_adapter(adap);