phy: phy-can-transceiver: Make devm_gpiod_get optional
authorAswath Govindraju <a-govindraju@ti.com>
Tue, 2 Nov 2021 11:21:20 +0000 (16:51 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Nov 2021 06:45:08 +0000 (12:15 +0530)
commitbe24d24840ccb6f35ecd866005bf1b9498cddf97
tree58be25fb72d0ea9994245270e7737712d2fcc834
parenta463462998777af31995e309617918552983b890
phy: phy-can-transceiver: Make devm_gpiod_get optional

In some cases the standby/enable gpio can be pulled low/high and would not
be connected to a gpio. The current driver implementation will return an
error in these cases. Therefore, make devm_gpiod_get optional.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20211102112120.23637-1-a-govindraju@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-can-transceiver.c