diff options
Diffstat (limited to 'drivers/mtd/onenand/generic.c')
-rw-r--r-- | drivers/mtd/onenand/generic.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c index 7813095264a5..0ccd5bff2544 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c | |||
@@ -115,21 +115,9 @@ static struct platform_driver generic_onenand_driver = { | |||
115 | .remove = __devexit_p(generic_onenand_remove), | 115 | .remove = __devexit_p(generic_onenand_remove), |
116 | }; | 116 | }; |
117 | 117 | ||
118 | MODULE_ALIAS("platform:" DRIVER_NAME); | 118 | module_platform_driver(generic_onenand_driver); |
119 | |||
120 | static int __init generic_onenand_init(void) | ||
121 | { | ||
122 | return platform_driver_register(&generic_onenand_driver); | ||
123 | } | ||
124 | |||
125 | static void __exit generic_onenand_exit(void) | ||
126 | { | ||
127 | platform_driver_unregister(&generic_onenand_driver); | ||
128 | } | ||
129 | |||
130 | module_init(generic_onenand_init); | ||
131 | module_exit(generic_onenand_exit); | ||
132 | 119 | ||
133 | MODULE_LICENSE("GPL"); | 120 | MODULE_LICENSE("GPL"); |
134 | MODULE_AUTHOR("Kyungmin Park <kyungmin.park@samsung.com>"); | 121 | MODULE_AUTHOR("Kyungmin Park <kyungmin.park@samsung.com>"); |
135 | MODULE_DESCRIPTION("Glue layer for OneNAND flash on generic boards"); | 122 | MODULE_DESCRIPTION("Glue layer for OneNAND flash on generic boards"); |
123 | MODULE_ALIAS("platform:" DRIVER_NAME); | ||