]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
gpio: stmpe: make it explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 9 May 2016 23:59:56 +0000 (19:59 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 May 2016 11:48:03 +0000 (13:48 +0200)
commit3b52bb960ec66f3788697e42e72ec3fa0e7f8178
tree1caf6bca150a22e013d8dfef67e4043354aba324
parent6a5ead91d45d091f6d60b20d47e595a1b9e25d67
gpio: stmpe: make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/gpio/Kconfig:config GPIO_STMPE
drivers/gpio/Kconfig:   bool "STMPE GPIOs"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

We explicitly disallow a driver unbind, since that doesn't have a
sensible use case anyway, and it allows us to drop the ".remove"
code for non-modular drivers.

Curiously, this driver was using subsys_initcall since day one, so
we don't have the "normal" module_init replacement in this change
like we've done in other similar driver updates.

We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stmpe.c