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

platform/olpc: Make ec explicitly non-modular

The Kconfig entry controlling compilation of this code is:

arch/x86/Kconfig:config OLPC
arch/x86/Kconfig: bool "One Laptop Per Child support"

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

We 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: platform-driver-x86@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>

authored by

Paul Gortmaker and committed by
Darren Hart
f48d1496 3eab887a

+3 -5
+3 -5
drivers/platform/olpc/olpc-ec.c
··· 1 1 /* 2 2 * Generic driver for the OLPC Embedded Controller. 3 3 * 4 + * Author: Andres Salomon <dilinger@queued.net> 5 + * 4 6 * Copyright (C) 2011-2012 One Laptop per Child Foundation. 5 7 * 6 8 * Licensed under the GPL v2 or later. ··· 14 12 #include <linux/platform_device.h> 15 13 #include <linux/slab.h> 16 14 #include <linux/workqueue.h> 17 - #include <linux/module.h> 15 + #include <linux/init.h> 18 16 #include <linux/list.h> 19 17 #include <linux/olpc-ec.h> 20 18 #include <asm/olpc.h> ··· 328 326 { 329 327 return platform_driver_register(&olpc_ec_plat_driver); 330 328 } 331 - 332 329 arch_initcall(olpc_ec_init_module); 333 - 334 - MODULE_AUTHOR("Andres Salomon <dilinger@queued.net>"); 335 - MODULE_LICENSE("GPL");