leds: syscon: Make the driver explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Dec 2015 21:45:51 +0000 (16:45 -0500)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:39 +0000 (09:57 +0100)
commitf7d98a65d031a0e08b102f4e5546bd5a45aa55dd
tree5290a66b85b2f9b352c941e4370de453c69343aa
parent067a8f3cad97f7b7d21ea05cbd2289aaa0f259df
leds: syscon: Make the driver explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/leds/Kconfig:config LEDS_SYSCON
drivers/leds/Kconfig:   bool "LED support for LEDs on system controllers"

...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.

Since module_platform_driver() uses the same init level priority as
builtin_platform_driver() the init ordering remains unchanged with
this commit.

Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-syscon.c