Alexandru Ardelean 94a7b66910 gpio: xgene: simplify probe, return devm_gpiochip_add_data() directly
The handling of the return value from devm_gpiochip_add_data() is a bit
redundant. It prints messages on error and success cases.
While the success message may be useful, it is more in the area of log
spam, and these can be printed with other forms of kernel logging.

This change does a direct return with devm_gpiochip_add_data() in the probe
function.

The platform_set_drvdata() is needed, as this driver uses the stored
private date in the PM suspend/resume routines.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
2021-05-23 20:30:26 +02:00
..
2020-07-20 15:34:59 +02:00
2021-04-14 10:19:22 +01:00
2020-07-23 15:03:25 +02:00
2020-01-15 11:24:19 +01:00
2021-05-05 16:07:41 +02:00
2019-09-03 16:04:19 +02:00
2021-05-05 16:07:41 +02:00
2021-05-05 16:07:41 +02:00
2021-05-05 12:39:29 -07:00
2019-11-07 09:27:48 +01:00
2020-12-09 15:17:24 +01:00
2021-02-15 11:43:30 +01:00
2019-12-09 10:40:18 +01:00
2020-12-09 15:17:24 +01:00
2021-05-05 12:39:29 -07:00
2021-05-05 12:39:29 -07:00