kernel: b53: register switch on probe
authorDavid Bauer <mail@david-bauer.net>
Mon, 22 Oct 2018 00:35:36 +0000 (02:35 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:13 +0000 (17:48 +0100)
commitf465540209db2eb90121f9df6e8513404426118f
tree5062ed7a6ce4067bf479590aa00836f8c41e1fc7
parente0455ba62439c57b884c0f88db049475d57829f8
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>
(backported from 6680fab9474a8a2d66d5ef86e2c392abe0d2c62d)
target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c