OSDN Git Service

gpiolib: Follow usual pattern for gpiod_remove_lookup_table() call
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 28 Dec 2020 20:06:16 +0000 (22:06 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 10:28:44 +0000 (11:28 +0100)
commitd321ad1286d2ac1f14fccadee822519a6ac9dd64
tree3022fd1a6c48ac496ce70946a43b00afe2f7aa78
parentcb9744178f330dcd5ea73788eba00b65deb068bb
gpiolib: Follow usual pattern for gpiod_remove_lookup_table() call

The usual pattern for the remove calls, like gpiod_remove_lookup_table(),
is to be NULL-aware, i.o.w. become a no-op whenever parameter is NULL.
Update gpiod_remove_lookup_table() call to follow this pattern.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/gpio/gpiolib.c