net: dsa: mv88e6xxx: drop revision probing
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Sun, 17 Apr 2016 17:23:57 +0000 (13:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2016 22:54:15 +0000 (18:54 -0400)
commit54c6f4bda7dabab7a7a9eeb8f1ced4b0b5fc4fd0
tree9c85421f81756b9a289cd186bf107d6f51278b0c
parentb346204737fafce585f62543ed7691fb4a72789d
net: dsa: mv88e6xxx: drop revision probing

There is no point in having a special case for the revision when probing
a switch model. The code gets cluttered with unnecessary defines, and
leads to errors when code such as mv88e6131_setup compares
PORT_SWITCH_ID_6131_B2 to ps->id which masks the revision.

Drop every revision definition, and lookup only the product number.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h