summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/drx397xD.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-04-26 08:43:59 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-26 08:43:59 +0000
commit8336aa0dd9ebd561d8bd2bd866b37071d0d0c79a (patch)
tree71c83ac02e1109c76234285f6c4c79a49a8cdcf7 /linux/drivers/media/dvb/frontends/drx397xD.c
parent3a5029e47ebbbb4707dce75ad6beebe667224ba5 (diff)
downloadmediapointer-dvb-s2-8336aa0dd9ebd561d8bd2bd866b37071d0d0c79a.tar.gz
mediapointer-dvb-s2-8336aa0dd9ebd561d8bd2bd866b37071d0d0c79a.tar.bz2
Link firmware to physical device
From: Jean Delvare <khali@linux-fr.org> 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 'linux/drivers/media/dvb/frontends/drx397xD.c')
-rw-r--r--linux/drivers/media/dvb/frontends/drx397xD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/drx397xD.c b/linux/drivers/media/dvb/frontends/drx397xD.c
index 0bdb933d0..95eff4a81 100644
--- a/linux/drivers/media/dvb/frontends/drx397xD.c
+++ b/linux/drivers/media/dvb/frontends/drx397xD.c
@@ -124,10 +124,10 @@ static int drx_load_fw(struct drx397xD_state *s, enum fw_ix ix)
}
memset(&fw[ix].data[0], 0, sizeof(fw[0].data));
- if (request_firmware(&fw[ix].file, fw[ix].name, &s->i2c->dev) != 0) {
+ rc = request_firmware(&fw[ix].file, fw[ix].name, s->i2c->dev.parent);
+ if (rc != 0) {
printk(KERN_ERR "%s: Firmware \"%s\" not available\n",
mod_name, fw[ix].name);
- rc = -ENOENT;
goto exit_err;
}