[PATCH] dvb: saa7146: i2c vs. sysfs fix
authorPhilipp Matthias Hahn <pmhahn@titan.lahn.de>
Fri, 9 Sep 2005 20:03:13 +0000 (13:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:46 +0000 (13:57 -0700)
Integrate saa7146_i2c adapter into device model:
Moves entries from /sys/device/platform to /sys/device/pci*.

Signed-off-by: Philipp Hahn <pmhahn@titan.lahn.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/common/saa7146_i2c.c

index 45f86737699aab8cdada2ab0b290e00694cfb4b2..fec6beab8c2873d95715f67a38b4d20bc97d04c9 100644 (file)
@@ -403,6 +403,7 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c
        if( NULL != i2c_adapter ) {
                BUG_ON(!i2c_adapter->class);
                i2c_set_adapdata(i2c_adapter,dev);
+               i2c_adapter->dev.parent    = &dev->pci->dev;
                i2c_adapter->algo          = &saa7146_algo;
                i2c_adapter->algo_data     = NULL;
                i2c_adapter->id            = I2C_HW_SAA7146;