e1000e: do not error out on identification LED init failure
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 20 Nov 2009 23:27:59 +0000 (23:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Nov 2009 19:34:25 +0000 (11:34 -0800)
A failure to initialize the identification LED is not a fatal condition and
should allow the init path to continue.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/82571.c
drivers/net/e1000e/es2lan.c
drivers/net/e1000e/ich8lan.c

index c5dc1b3be230334371a4e5b63c1286c6b9eb047d..474f4e419d2084eaa5da205b698290a2ce845c5b 100644 (file)
@@ -948,10 +948,9 @@ static s32 e1000_init_hw_82571(struct e1000_hw *hw)
 
        /* Initialize identification LED */
        ret_val = e1000e_id_led_init(hw);
-       if (ret_val) {
+       if (ret_val)
                e_dbg("Error initializing identification LED\n");
-               return ret_val;
-       }
+               /* This is not fatal and we should not stop init due to this */
 
        /* Disabling VLAN filtering */
        e_dbg("Initializing the IEEE VLAN\n");
index 8a089569c6e1ef0e3007b4dbe19756dc115536b2..6ba1228836e740d2b0001dc07a79f081e0ccad03 100644 (file)
@@ -803,10 +803,9 @@ static s32 e1000_init_hw_80003es2lan(struct e1000_hw *hw)
 
        /* Initialize identification LED */
        ret_val = e1000e_id_led_init(hw);
-       if (ret_val) {
+       if (ret_val)
                e_dbg("Error initializing identification LED\n");
-               return ret_val;
-       }
+               /* This is not fatal and we should not stop init due to this */
 
        /* Disabling VLAN filtering */
        e_dbg("Initializing the IEEE VLAN\n");
index 2c1d08e04436c912029c1d936395575e740b8008..fe6dc3de9ac7d2b268515e3b2aa5fe860949eb42 100644 (file)
@@ -2722,10 +2722,9 @@ static s32 e1000_init_hw_ich8lan(struct e1000_hw *hw)
 
        /* Initialize identification LED */
        ret_val = mac->ops.id_led_init(hw);
-       if (ret_val) {
+       if (ret_val)
                e_dbg("Error initializing identification LED\n");
-               return ret_val;
-       }
+               /* This is not fatal and we should not stop init due to this */
 
        /* Setup the receive address. */
        e1000e_init_rx_addrs(hw, mac->rar_entry_count);