diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-06-21 14:21:19 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-06-21 14:21:19 +0000 |
commit | 532af0393d74270b67d5510647d61ed7c59db948 (patch) | |
tree | 80df67ae7793557aac1664512ea505e89294d4de | |
parent | 580e3994dc8a4255d306e257b0f5dcf537b1577a (diff) | |
download | mediapointer-dvb-s2-532af0393d74270b67d5510647d61ed7c59db948.tar.gz mediapointer-dvb-s2-532af0393d74270b67d5510647d61ed7c59db948.tar.bz2 |
patch by Kenneth Aafløy: better error message if firmware cannot be loaded
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index aa9287350..f2466f715 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -1309,7 +1309,16 @@ static int get_firmware(struct av7110* av7110) /* request the av7110 firmware, this will block until someone uploads it */ ret = request_firmware(&fw, "dvb-ttpci-01.fw", &av7110->dev->pci->dev); if (ret) { - printk("dvb-ttpci: cannot request firmware!\n"); + if (ret == -ENOENT) { + printk(KERN_ERR "dvb-ttpci: could not load firmware," + " file not found: dvb-ttpci-01.fw\n"); + printk(KERN_ERR "dvb-ttpci: usually this should be in" + " /usr/lib/hotplug/firmware\n"); + printk(KERN_ERR "dvb-ttpci: and can be downloaded here" + " http://www.linuxtv.org/download/dvb/firmware/\n"); + } else + printk(KERN_ERR "dvb-ttpci: cannot request firmware" + " (error %i)\n", ret); return -EINVAL; } if (fw->size <= 200000) { |