[PATCH] bcm43xx-softmac: improve wrong firmware message
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 12 Sep 2006 20:29:04 +0000 (15:29 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Sep 2006 20:52:16 +0000 (16:52 -0400)
An error message is changed to a printk as the original dprintk
would be optimized away if debugging were not enabled. If the error
is triggered, a more meaningful message is returned.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c

index cb9a3ae8463a99ddacc77b4dabed99e81be7c3dd..b02e50d2ca3265ec3f80c02ec9dc5fcffc6264a9 100644 (file)
@@ -2405,9 +2405,10 @@ static int bcm43xx_chip_init(struct bcm43xx_private *bcm)
                                   BCM43xx_UCODE_TIME) & 0x1f);
 
        if ( value16 > 0x128 ) {
-               dprintk(KERN_ERR PFX
-                       "Firmware: no support for microcode rev > 0x128\n");
-               err = -1;
+               printk(KERN_ERR PFX
+                       "Firmware: no support for microcode extracted "
+                       "from version 4.x binary drivers.\n");
+               err = -EOPNOTSUPP;
                goto err_release_fw;
        }