Skip to content

Commit e4dca0f

Browse files
Paul Gortmakerrafaeljw
authored andcommitted
PNP: isapnp: make core more explicitly non-modular
The Makefile currently controlling compilation of this code is: obj-y += pnp.o pnp-y := core.o compat.o ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. We don't replace module.h with init.h since the file already has that. But we do add moduleparam.h since the file does use module_param(). Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 694d0d0 commit e4dca0f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/pnp/isapnp/core.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* 2003-08-11 Resource Management Updates - Adam Belay <ambx1@neo.rr.com>
3535
*/
3636

37-
#include <linux/module.h>
37+
#include <linux/moduleparam.h>
3838
#include <linux/kernel.h>
3939
#include <linux/errno.h>
4040
#include <linux/delay.h>
@@ -54,8 +54,6 @@ static int isapnp_rdp; /* Read Data Port */
5454
static int isapnp_reset = 1; /* reset all PnP cards (deactivate) */
5555
static int isapnp_verbose = 1; /* verbose mode */
5656

57-
MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>");
58-
MODULE_DESCRIPTION("Generic ISA Plug & Play support");
5957
module_param(isapnp_disable, int, 0);
6058
MODULE_PARM_DESC(isapnp_disable, "ISA Plug & Play disable");
6159
module_param(isapnp_rdp, int, 0);
@@ -64,7 +62,6 @@ module_param(isapnp_reset, int, 0);
6462
MODULE_PARM_DESC(isapnp_reset, "ISA Plug & Play reset all cards");
6563
module_param(isapnp_verbose, int, 0);
6664
MODULE_PARM_DESC(isapnp_verbose, "ISA Plug & Play verbose mode");
67-
MODULE_LICENSE("GPL");
6865

6966
#define _PIDXR 0x279
7067
#define _PNPWRP 0xa79

0 commit comments

Comments
 (0)