diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-12-14 00:45:51 +0300 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-01-04 11:57:39 +0300 |
commit | f7d98a65d031a0e08b102f4e5546bd5a45aa55dd (patch) | |
tree | 5290a66b85b2f9b352c941e4370de453c69343aa /drivers/leds/leds-bcm6328.c | |
parent | 067a8f3cad97f7b7d21ea05cbd2289aaa0f259df (diff) | |
download | linux-f7d98a65d031a0e08b102f4e5546bd5a45aa55dd.tar.xz |
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>
Diffstat (limited to 'drivers/leds/leds-bcm6328.c')
0 files changed, 0 insertions, 0 deletions