Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

reset: socfpga: make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/reset/Kconfig:config RESET_SOCFPGA
drivers/reset/Kconfig: bool "SoCFPGA Reset Driver" if COMPILE_TEST
drivers/reset/Kconfig: default ARCH_SOCFPGA

or

arch/arm/mach-socfpga/Kconfig:menuconfig ARCH_SOCFPGA
arch/arm/mach-socfpga/Kconfig: bool "Altera SOCFPGA family" if ARCH_MULTI_V7

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

Lets remove the small amount of modular evidence that remains, so that
when reading the driver there is no doubt it is builtin-only.

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

We also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.

Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Paul Gortmaker and committed by
Philipp Zabel
02163199 ed4dba99

+4 -6
+4 -6
drivers/reset/reset-socfpga.c
··· 1 1 /* 2 + * Socfpga Reset Controller Driver 3 + * 2 4 * Copyright 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de> 3 5 * 4 6 * based on ··· 18 16 19 17 #include <linux/err.h> 20 18 #include <linux/io.h> 21 - #include <linux/module.h> 19 + #include <linux/init.h> 22 20 #include <linux/of.h> 23 21 #include <linux/platform_device.h> 24 22 #include <linux/reset-controller.h> ··· 150 148 .of_match_table = socfpga_reset_dt_ids, 151 149 }, 152 150 }; 153 - module_platform_driver(socfpga_reset_driver); 154 - 155 - MODULE_AUTHOR("Steffen Trumtrar <s.trumtrar@pengutronix.de"); 156 - MODULE_DESCRIPTION("Socfpga Reset Controller Driver"); 157 - MODULE_LICENSE("GPL"); 151 + builtin_platform_driver(socfpga_reset_driver);