mdio_bus: use devm_gpiod_get_optional()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 12 Jun 2017 20:55:39 +0000 (23:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 16:56:42 +0000 (12:56 -0400)
commitfe0e4052fb11d5c713961ab7e136520be40052a3
tree60dbcae8697b5c2fc821c8bc2e12b93a64f5db3a
parentd396e84c56047b303cac378dde4b2e5cc430b336
mdio_bus: use devm_gpiod_get_optional()

The MDIO reset GPIO is really a classical optional GPIO property case,
so devm_gpiod_get_optional() should have been used, not devm_gpiod_get().
Doing this  saves several LoCs...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c