OSDN Git Service

net: pch_gbe: Propagate error from devm_gpio_request_one()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 16:39:27 +0000 (19:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:58:20 +0000 (14:58 -0700)
commit9e3617a7b84512bf96c04f9cf82d1a7257d33794
tree25e6683a517f04e8333ecb2b3bd60ec1a6e65177
parent27d64141949e92c04d95d99f215b7f5b261bd8b1
net: pch_gbe: Propagate error from devm_gpio_request_one()

If GPIO controller is not available yet we need to defer
the probe of GBE until provider will become available.

While here, drop GPIOF_EXPORT because it's deprecated and
may not be available.

Fixes: f1a26fdf5944 ("pch_gbe: Add MinnowBoard support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Flavio Suligoi <f.suligoi@asem.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c