diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-05 12:01:32 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 16:44:02 +0200 |
commit | 2fe87aef33b77d66fada83f5dc57b6798ad5df07 (patch) | |
tree | c8b0b555bb875111b835a379826a8ffd21e8a8fa /drivers/mtd/nand/gpio.c | |
parent | mtd: mxc_nand: Adapt the clock name to the new clock framework (diff) | |
download | linux-2fe87aef33b77d66fada83f5dc57b6798ad5df07.tar.xz linux-2fe87aef33b77d66fada83f5dc57b6798ad5df07.zip |
mtd: nand/gpio: Convert to module_platform_driver()
module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/gpio.c')
-rw-r--r-- | drivers/mtd/nand/gpio.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c index ce6a284c8277..bc73bc5f2713 100644 --- a/drivers/mtd/nand/gpio.c +++ b/drivers/mtd/nand/gpio.c @@ -417,20 +417,7 @@ static struct platform_driver gpio_nand_driver = { }, }; -static int __init gpio_nand_init(void) -{ - printk(KERN_INFO "GPIO NAND driver, © 2004 Simtec Electronics\n"); - - return platform_driver_register(&gpio_nand_driver); -} - -static void __exit gpio_nand_exit(void) -{ - platform_driver_unregister(&gpio_nand_driver); -} - -module_init(gpio_nand_init); -module_exit(gpio_nand_exit); +module_platform_driver(gpio_nand_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |