OSDN Git Service

drivers/gpio/gpiolib: Add support for removing registered consumer lookup table
authorShobhit Kumar <shobhit.kumar@intel.com>
Fri, 10 Apr 2015 08:39:12 +0000 (14:09 +0530)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 28 Apr 2015 17:15:12 +0000 (01:15 +0800)
commitdde5d98a45294e47e127ded53ae5de4df7fd6548
tree1f81ddb2a1515392d22f7eb719d74059d43f36bb
parent8a9b7503ac1c5b4bf3ead0c8807dd5f3d5eed59d
drivers/gpio/gpiolib: Add support for removing registered consumer lookup table

In case we unload and load a driver module again that is registering a
lookup table, without this it will result in multiple entries. Provide
an option to remove the lookup table on driver unload

v2: Ccing maintainers

Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
drivers/gpio/gpiolib.c
include/linux/gpio/machine.h