net: phy: fixed_phy: Fix fixed_phy not checking GPIO
authorMoritz Fischer <mdf@kernel.org>
Thu, 7 Feb 2019 05:45:29 +0000 (21:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 17:49:49 +0000 (09:49 -0800)
commit8f289805616e81f7c1690931aa8a586c76f4fa88
tree54c3ccccc095440563cb34e9b87c2b02251e574c
parent22087d659212d2401f4caa602fd57160ff1e6222
net: phy: fixed_phy: Fix fixed_phy not checking GPIO

Fix fixed_phy not checking GPIO if no link_update callback
is registered.

In the original version all users registered a link_update
callback so the issue was masked.

Fixes: a5597008dbc2 ("phy: fixed_phy: Add gpio to determine link up/down.")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c