summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 12:53:03 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 12:53:03 -0200
commita10fafffd600af5d428876815d7da534e3a4c824 (patch)
tree417bcfacf63f442fbd9387af018173288ee0b156 /linux/drivers/media/dvb/dvb-usb
parentb53eb55ff0f73052682018efc8974bcbc7f6aec1 (diff)
downloadmediapointer-dvb-s2-a10fafffd600af5d428876815d7da534e3a4c824.tar.gz
mediapointer-dvb-s2-a10fafffd600af5d428876815d7da534e3a4c824.tar.bz2
backport changeset 12a917f69d1468c91d646dbad8408dd0d39d6207
From: Mauro Carvalho Chehab <mchehab@infradead.org> Backport changeset from Jean Delvare <khali@linux-fr.org> that declare i2c_adapter parent devices. kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
index 55ba02038..70df31b0a 100644
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
@@ -27,6 +27,7 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d)
#endif
d->i2c_adap.algo = d->props.i2c_algo;
d->i2c_adap.algo_data = NULL;
+ d->i2c_adap.dev.parent = &d->udev->dev;
i2c_set_adapdata(&d->i2c_adap, d);