kernel: b53: register switch on probe
authorDavid Bauer <mail@david-bauer.net>
Mon, 22 Oct 2018 00:35:36 +0000 (02:35 +0200)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 23 Nov 2018 21:45:51 +0000 (21:45 +0000)
commit6680fab9474a8a2d66d5ef86e2c392abe0d2c62d
tree18dd961cd1880f471d43d3643c616ef88845ccb4
parent53020ed4b981d8d48394842d0aff1a0d0497cc1c
kernel: b53: register switch on probe

Currently, the b53 MDIO switch driver registers the switch on
config-init and not on device probe. Because of this, the switch
gets added every time the associated interface comes up.

This commit fixes this behavior by registering the switch on device
probe.

Compile- and run-tested on OCEDO Koala.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c