summaryrefslogtreecommitdiff
path: root/drivers/media/common/saa7146_i2c.c
diff options
context:
space:
mode:
authorPhilipp Matthias Hahn <pmhahn@titan.lahn.de>2005-09-09 20:03:13 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 20:57:46 (GMT)
commit1ac2854cbc637de7e958cfa8d153ccf9e6668dda (patch)
treeb0b4ae329cf92cd207a6e113c46d81ff894b1a07 /drivers/media/common/saa7146_i2c.c
parent6af4ee10f0b2bec2b8c40150298a9f7c1e9e46c6 (diff)
downloadlinux-1ac2854cbc637de7e958cfa8d153ccf9e6668dda.tar.xz
[PATCH] dvb: saa7146: i2c vs. sysfs fix
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>
Diffstat (limited to 'drivers/media/common/saa7146_i2c.c')
-rw-r--r--drivers/media/common/saa7146_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/common/saa7146_i2c.c b/drivers/media/common/saa7146_i2c.c
index 45f8673..fec6bea 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -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;