summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-08-31 12:13:13 +0000
committerJohannes Stezenbach <devnull@localhost>2005-08-31 12:13:13 +0000
commit566ea02fc64f2cbc7c77af54694c3897282117be (patch)
tree88c2baec5dd03d00b69852e623e630645ef48667
parenta1b0c8ae076f74c4f683c149b05bde574f24df8b (diff)
downloadmediapointer-dvb-s2-566ea02fc64f2cbc7c77af54694c3897282117be.tar.gz
mediapointer-dvb-s2-566ea02fc64f2cbc7c77af54694c3897282117be.tar.bz2
From: Philipp Matthias Hahn <pmhahn@titan.lahn.de>
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>
-rw-r--r--linux/drivers/media/common/saa7146_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c
index 8c764ee63..99317f0c0 100644
--- a/linux/drivers/media/common/saa7146_i2c.c
+++ b/linux/drivers/media/common/saa7146_i2c.c
@@ -405,6 +405,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_ALGO_SAA7146;