]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: microchip: Do not reinit mutexes on KSZ87xx
authorMarek Vasut <marex@denx.de>
Wed, 16 Oct 2019 13:33:23 +0000 (15:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2019 19:38:46 +0000 (15:38 -0400)
commit7f238ca984b9c6a89e2339c661440c775d617386
tree111a15ee620fb024d64161d1d5d8a8e514a543f7
parentc9ad4c1049f7e0e8d59e975963dda002af47d93e
net: dsa: microchip: Do not reinit mutexes on KSZ87xx

The KSZ87xx driver calls mutex_init() on mutexes already inited in
ksz_common.c ksz_switch_register(). Do not do it twice, drop the
reinitialization.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: David S. Miller <davem@davemloft.net>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: George McCollister <george.mccollister@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c