]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio-gpio: Allow for unspecified bus id
authorBert Vermeulen <bert@biot.com>
Fri, 8 May 2015 14:18:49 +0000 (16:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 May 2015 23:42:11 +0000 (19:42 -0400)
commit543c83b630dde30639462098592c97622bdc2229
tree73da8142fabb0062940986b7ccc4cae2f1903c85
parent58a97173dfc0780e2d2d4e2253030573ab2c6c02
net: mdio-gpio: Allow for unspecified bus id

When the bus id was supplied via a struct platform_device, the driver wasn't
handling -1 to mean an unspecified id of the only instance of this driver,
as the platform spec requires.

Signed-off-by: Bert Vermeulen <bert@biot.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c