]> git.baikalelectronics.ru Git - kernel.git/commit
pps: clients: gpio: Propagate return value from pps_gpio_probe
authorRobert Hancock <robert.hancock@calian.com>
Wed, 12 Jan 2022 20:52:14 +0000 (14:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:33:42 +0000 (15:33 +0100)
commitc233cbb7a2dcea241e1efaf9286ac82f5758be6c
treeb46ec8d589b694cefe83cdcdf8162b807df99a0d
parent6cc4757da02bdab5890882d185f33315e146102a
pps: clients: gpio: Propagate return value from pps_gpio_probe

If the pps-gpio driver was probed prior to the GPIO device it uses, the
devm_gpiod_get call returned an -EPROBE_DEFER error, but pps_gpio_probe
replaced that error code with -EINVAL, causing the pps-gpio probe to
fail and not be retried later. Propagate the error return value so that
deferred probe works properly.

Fixes: a31e2a324788 (pps: new client driver using GPIO)
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: Rodolfo Giometti <giometti@enneenne.com>
Link: https://lore.kernel.org/r/20220112205214.2060954-1-robert.hancock@calian.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pps/clients/pps-gpio.c