]> git.karo-electronics.de Git - karo-tx-linux.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)
commit7c0c82682873354490a5b67c77331bd65a356236
tree73da8142fabb0062940986b7ccc4cae2f1903c85
parentfbf33a2802f71dba06faa948af805884ff16a2ab
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