commit | 1d7765ba15aca68f3bc52f59434c1c34855bbb54 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Tue Mar 26 17:21:14 2019 +0200 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Thu Apr 04 09:34:13 2019 +0200 |
tree | d6fb55519c2e79a46e08db62cb2c6fdefbc6a72d | |
parent | 85edcd01a902885fcb7bc02b7fc0f6e6a01b9386 [diff] |
gpiolib: Don't WARN on gpiod_put() for optional GPIO In case of debug and optional GPIO requested, the gpiod_put() is not aware of and will WARN, which is not the case. Make gpiod_put() NULL-aware to keep silent for optional GPIOs. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>