diff options
author | David Brownell <david-b@pacbell.net> | 2008-04-07 15:29:23 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 16:24:00 -0400 |
commit | f1ebe4eba40e0ee862767893277d1b1a1e4cc85f (patch) | |
tree | aa36c97405dbd3660d1735ae655b7b3eb2a09737 /drivers/mtd/maps/omap_nor.c | |
parent | 70b072550a59e787b46030ab104ac64e25fcc732 (diff) |
[MTD] [MAPS] omap_nor section fixes
Minor tweaks to omap_nor ... as with most platform drivers, its probe
and remove logic can (and should!) safely vanish in most configs.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps/omap_nor.c')
-rw-r--r-- | drivers/mtd/maps/omap_nor.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/mtd/maps/omap_nor.c b/drivers/mtd/maps/omap_nor.c index 676248ff4a75..240b0e2d095d 100644 --- a/drivers/mtd/maps/omap_nor.c +++ b/drivers/mtd/maps/omap_nor.c | |||
@@ -70,7 +70,7 @@ static void omap_set_vpp(struct map_info *map, int enable) | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | static int __devinit omapflash_probe(struct platform_device *pdev) | 73 | static int __init omapflash_probe(struct platform_device *pdev) |
74 | { | 74 | { |
75 | int err; | 75 | int err; |
76 | struct omapflash_info *info; | 76 | struct omapflash_info *info; |
@@ -130,7 +130,7 @@ out_free_info: | |||
130 | return err; | 130 | return err; |
131 | } | 131 | } |
132 | 132 | ||
133 | static int __devexit omapflash_remove(struct platform_device *pdev) | 133 | static int __exit omapflash_remove(struct platform_device *pdev) |
134 | { | 134 | { |
135 | struct omapflash_info *info = platform_get_drvdata(pdev); | 135 | struct omapflash_info *info = platform_get_drvdata(pdev); |
136 | 136 | ||
@@ -152,8 +152,7 @@ static int __devexit omapflash_remove(struct platform_device *pdev) | |||
152 | } | 152 | } |
153 | 153 | ||
154 | static struct platform_driver omapflash_driver = { | 154 | static struct platform_driver omapflash_driver = { |
155 | .probe = omapflash_probe, | 155 | .remove = __exit_p(omapflash_remove), |
156 | .remove = __devexit_p(omapflash_remove), | ||
157 | .driver = { | 156 | .driver = { |
158 | .name = "omapflash", | 157 | .name = "omapflash", |
159 | .owner = THIS_MODULE, | 158 | .owner = THIS_MODULE, |
@@ -162,7 +161,7 @@ static struct platform_driver omapflash_driver = { | |||
162 | 161 | ||
163 | static int __init omapflash_init(void) | 162 | static int __init omapflash_init(void) |
164 | { | 163 | { |
165 | return platform_driver_register(&omapflash_driver); | 164 | return platform_driver_probe(&omapflash_driver, omapflash_probe); |
166 | } | 165 | } |
167 | 166 | ||
168 | static void __exit omapflash_exit(void) | 167 | static void __exit omapflash_exit(void) |