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

gpio: mxc: drop unused MODULE_ tags from non-modular code

The Kconfig currently controlling compilation of this code is:

drivers/gpio/Kconfig:config GPIO_MXC
drivers/gpio/Kconfig: def_bool y

...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.
Note the original e-mail had a missing/typo'd @ symbol anyway.

We don't replace module.h with init.h since the file already has that.

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Juergen Beisert <kernel@pengutronix.de>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Paul Gortmaker and committed by
Linus Walleij
2c8d6c86 98102880

+2 -8
+2 -8
drivers/gpio/gpio-mxc.c
··· 2 2 * MXC GPIO support. (c) 2008 Daniel Mack <daniel@caiaq.de> 3 3 * Copyright 2008 Juergen Beisert, kernel@pengutronix.de 4 4 * 5 - * Based on code from Freescale, 5 + * Based on code from Freescale Semiconductor, 6 + * Authors: Daniel Mack, Juergen Beisert. 6 7 * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. 7 8 * 8 9 * This program is free software; you can redistribute it and/or ··· 34 33 #include <linux/gpio.h> 35 34 #include <linux/of.h> 36 35 #include <linux/of_device.h> 37 - #include <linux/module.h> 38 36 #include <linux/bug.h> 39 37 40 38 enum mxc_gpio_hwtype { ··· 511 511 return platform_driver_register(&mxc_gpio_driver); 512 512 } 513 513 postcore_initcall(gpio_mxc_init); 514 - 515 - MODULE_AUTHOR("Freescale Semiconductor, " 516 - "Daniel Mack <danielncaiaq.de>, " 517 - "Juergen Beisert <kernel@pengutronix.de>"); 518 - MODULE_DESCRIPTION("Freescale MXC GPIO"); 519 - MODULE_LICENSE("GPL");