Re: [PATCH net] net: phy: Handle not having GPIO enabled in the kernel

2018-02-06 Thread David Miller
From: Andrew Lunn Date: Mon, 5 Feb 2018 19:17:23 +0100 > If CONFIG_GPIOLIB is disabled, fwnode_get_named_gpiod() becomes a stub > function, which return -ENOSYS. Handle this in the same way as > -ENOENT, i.e. assume there is no GPIO used to reset the PHYs. > > Reported-by: Christian Zigotzky >

[PATCH net] net: phy: Handle not having GPIO enabled in the kernel

2018-02-05 Thread Andrew Lunn
If CONFIG_GPIOLIB is disabled, fwnode_get_named_gpiod() becomes a stub function, which return -ENOSYS. Handle this in the same way as -ENOENT, i.e. assume there is no GPIO used to reset the PHYs. Reported-by: Christian Zigotzky Tested-by: Christian Zigotzky Signed-off-by: Andrew Lunn Reviewed-b