aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54usb.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-10-18 17:04:15 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:10:15 -0500
commit9a8675d712d57da0993ad2e43b168c9585892097 (patch)
tree9f7bc455c1acfcc0efce0b8092c93759d88814ce /drivers/net/wireless/p54/p54usb.c
parent4ceb7b6ae2cf5b6e32c403a11bb54081bf8f8b83 (diff)
p54: introduce new names for device firmwares
Johannes thought it would have been a good idea to change the firmware names. Note: we still have fallbacks in case our users don't want to "break their running system", but we won't advertise them with MODULE_FIRMWARE. Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54usb.c')
-rw-r--r--drivers/net/wireless/p54/p54usb.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c
index 49739c36a449..21ba526a45bf 100644
--- a/drivers/net/wireless/p54/p54usb.c
+++ b/drivers/net/wireless/p54/p54usb.c
@@ -28,6 +28,8 @@ MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>");
28MODULE_DESCRIPTION("Prism54 USB wireless driver"); 28MODULE_DESCRIPTION("Prism54 USB wireless driver");
29MODULE_LICENSE("GPL"); 29MODULE_LICENSE("GPL");
30MODULE_ALIAS("prism54usb"); 30MODULE_ALIAS("prism54usb");
31MODULE_FIRMWARE("isl3886usb");
32MODULE_FIRMWARE("isl3887usb");
31 33
32static struct usb_device_id p54u_table[] __devinitdata = { 34static struct usb_device_id p54u_table[] __devinitdata = {
33 /* Version 1 devices (pci chip + net2280) */ 35 /* Version 1 devices (pci chip + net2280) */
@@ -415,10 +417,13 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev)
415 goto err_reset; 417 goto err_reset;
416 } 418 }
417 419
418 err = request_firmware(&fw_entry, "isl3887usb_bare", &priv->udev->dev); 420 err = request_firmware(&fw_entry, "isl3887usb", &priv->udev->dev);
419 if (err) { 421 if (err) {
420 printk(KERN_ERR "p54usb: cannot find firmware (isl3887usb_bare)!\n"); 422 printk(KERN_ERR "p54usb: cannot find firmware (isl3887usb)\n");
421 goto err_req_fw_failed; 423 err = request_firmware(&fw_entry, "isl3887usb_bare",
424 &priv->udev->dev);
425 if (err)
426 goto err_req_fw_failed;
422 } 427 }
423 428
424 err = p54_parse_firmware(dev, fw_entry); 429 err = p54_parse_firmware(dev, fw_entry);
@@ -553,11 +558,15 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev)
553 return -ENOMEM; 558 return -ENOMEM;
554 } 559 }
555 560
556 err = request_firmware(&fw_entry, "isl3890usb", &priv->udev->dev); 561 err = request_firmware(&fw_entry, "isl3886usb", &priv->udev->dev);
557 if (err) { 562 if (err) {
558 printk(KERN_ERR "p54usb: cannot find firmware (isl3890usb)!\n"); 563 printk(KERN_ERR "p54usb: cannot find firmware (isl3886usb)\n");
559 kfree(buf); 564 err = request_firmware(&fw_entry, "isl3890usb",
560 return err; 565 &priv->udev->dev);
566 if (err) {
567 kfree(buf);
568 return err;
569 }
561 } 570 }
562 571
563 err = p54_parse_firmware(dev, fw_entry); 572 err = p54_parse_firmware(dev, fw_entry);