]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: macb: Only call GPIO functions if there is a valid GPIO
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 28 Mar 2016 12:47:42 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2016 15:39:16 +0000 (11:39 -0400)
commit0e3e7999703e7df93a9deee8ba89b604c5fd662d
tree654f202dc57e4b8a4af2e7016bf7de5781666bea
parent9832ce4c0bb90e4dcedf4280947341b1eb6728e6
net: macb: Only call GPIO functions if there is a valid GPIO

GPIOlib will print warning messages if we call GPIO functions without a
valid GPIO. Change the code to avoid doing so.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c