be2net: FW init cmd fix for lancer
authorSathya Perla <sathya.perla@emulex.com>
Wed, 1 Dec 2010 01:03:36 +0000 (01:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 20:59:08 +0000 (12:59 -0800)
Lancer can use the same pattern as BE to indicate a driver load
to the FW.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c

index 3865b2bc65e6abab69ab071d13dae8930c2372e2..31c5ddc08fc8373f3943ad4988064e1839c42f95 100644 (file)
@@ -470,25 +470,14 @@ int be_cmd_fw_init(struct be_adapter *adapter)
        spin_lock(&adapter->mbox_lock);
 
        wrb = (u8 *)wrb_from_mbox(adapter);
-       if (lancer_chip(adapter)) {
-               *wrb++ = 0xFF;
-               *wrb++ = 0x34;
-               *wrb++ = 0x12;
-               *wrb++ = 0xFF;
-               *wrb++ = 0xFF;
-               *wrb++ = 0x78;
-               *wrb++ = 0x56;
-               *wrb = 0xFF;
-       } else {
-               *wrb++ = 0xFF;
-               *wrb++ = 0x12;
-               *wrb++ = 0x34;
-               *wrb++ = 0xFF;
-               *wrb++ = 0xFF;
-               *wrb++ = 0x56;
-               *wrb++ = 0x78;
-               *wrb = 0xFF;
-       }
+       *wrb++ = 0xFF;
+       *wrb++ = 0x12;
+       *wrb++ = 0x34;
+       *wrb++ = 0xFF;
+       *wrb++ = 0xFF;
+       *wrb++ = 0x56;
+       *wrb++ = 0x78;
+       *wrb = 0xFF;
 
        status = be_mbox_notify_wait(adapter);