summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/xc5000.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-04-26 10:43:59 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 23:20:56 +0200
commite9785250ef2eead8bd5e9166679c0be0595df387 (patch)
tree8bc16b02d4f80206190183e7a9d3224395e9203a /drivers/media/common/tuners/xc5000.c
parentV4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added (diff)
downloadlinux-e9785250ef2eead8bd5e9166679c0be0595df387.tar.xz
linux-e9785250ef2eead8bd5e9166679c0be0595df387.zip
V4L/DVB (11723): Link firmware to physical device
Use the physical device rather than the i2c adapter as the reference device when loading firmwares. This will prevent the sysfs name collision with i2c-dev that has been reported many times. I may have missed other drivers which need the same fix. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/xc5000.c')
-rw-r--r--drivers/media/common/tuners/xc5000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c
index b54598550dc4..f3880f8977e0 100644
--- a/drivers/media/common/tuners/xc5000.c
+++ b/drivers/media/common/tuners/xc5000.c
@@ -575,7 +575,7 @@ static int xc5000_fwupload(struct dvb_frontend *fe)
XC5000_DEFAULT_FIRMWARE);
ret = request_firmware(&fw, XC5000_DEFAULT_FIRMWARE,
- &priv->i2c_props.adap->dev);
+ priv->i2c_props.adap->dev.parent);
if (ret) {
printk(KERN_ERR "xc5000: Upload failed. (file not found?)\n");
ret = XC_RESULT_RESET_FAILURE;