]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fixed_phy: print gpio error only if gpio node is present
authorHubert Feurstein <h.feurstein@gmail.com>
Tue, 30 Jul 2019 09:46:23 +0000 (11:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2019 16:54:45 +0000 (09:54 -0700)
commit1538c8ac00df8b033b35fe151672eacd9f0308e7
tree948b0c69f204707f556e6efe10cc5140f2c9629c
parent53c3a3208c3859866671722ec282408a49e276d7
net: phy: fixed_phy: print gpio error only if gpio node is present

It is perfectly ok to not have an gpio attached to the fixed-link node. So
the driver should not throw an error message when the gpio is missing.

Fixes: 4e287bfd91ad ("net: phy: fixed-phy: Drop GPIO from fixed_phy_add()")
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c