]> 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)
commit9746329fae6b8b5c79cd26203aa2678e6b3b40a3
tree73da8142fabb0062940986b7ccc4cae2f1903c85
parent8e786ada97ba879a8bec665abfefeaa1e0595d44
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