be2net: fix wrong usage of adapter->generation
authorSathya Perla <sathya.perla@emulex.com>
Tue, 6 Nov 2012 17:48:56 +0000 (17:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 21:59:52 +0000 (16:59 -0500)
commitca34fe38f06da0f508543539419ff5faa5d81e1c
tree049b17b282475c13e13c23f857ff6f96f2e9e3b1
parent5727f841dcd8f7a06dd85d76c0aba4a0e30a70a8
be2net: fix wrong usage of adapter->generation

adapter->generation was being incorrectly set as BE_GEN3 for Skyhawk-R.
Replace generation usage with XXX_chip() macros to identify the chip.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c