aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/gpio-addr-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/gpio-addr-flash.c')
-rw-r--r--drivers/mtd/maps/gpio-addr-flash.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c
index e4de96ba52b3..7b643de2500b 100644
--- a/drivers/mtd/maps/gpio-addr-flash.c
+++ b/drivers/mtd/maps/gpio-addr-flash.c
@@ -26,7 +26,8 @@
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include <linux/types.h> 27#include <linux/types.h>
28 28
29#define pr_devinit(fmt, args...) ({ static const __devinitconst char __fmt[] = fmt; printk(__fmt, ## args); }) 29#define pr_devinit(fmt, args...) \
30 ({ static const char __fmt[] = fmt; printk(__fmt, ## args); })
30 31
31#define DRIVER_NAME "gpio-addr-flash" 32#define DRIVER_NAME "gpio-addr-flash"
32#define PFX DRIVER_NAME ": " 33#define PFX DRIVER_NAME ": "
@@ -142,7 +143,8 @@ static void gf_write(struct map_info *map, map_word d1, unsigned long ofs)
142 * 143 *
143 * See gf_copy_from() caveat. 144 * See gf_copy_from() caveat.
144 */ 145 */
145static void gf_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) 146static void gf_copy_to(struct map_info *map, unsigned long to,
147 const void *from, ssize_t len)
146{ 148{
147 struct async_state *state = gf_map_info_to_state(map); 149 struct async_state *state = gf_map_info_to_state(map);
148 150
@@ -185,7 +187,7 @@ static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
185 * ... 187 * ...
186 * }; 188 * };
187 */ 189 */
188static int __devinit gpio_flash_probe(struct platform_device *pdev) 190static int gpio_flash_probe(struct platform_device *pdev)
189{ 191{
190 size_t i, arr_size; 192 size_t i, arr_size;
191 struct physmap_flash_data *pdata; 193 struct physmap_flash_data *pdata;
@@ -258,7 +260,7 @@ static int __devinit gpio_flash_probe(struct platform_device *pdev)
258 return 0; 260 return 0;
259} 261}
260 262
261static int __devexit gpio_flash_remove(struct platform_device *pdev) 263static int gpio_flash_remove(struct platform_device *pdev)
262{ 264{
263 struct async_state *state = platform_get_drvdata(pdev); 265 struct async_state *state = platform_get_drvdata(pdev);
264 size_t i = 0; 266 size_t i = 0;
@@ -273,7 +275,7 @@ static int __devexit gpio_flash_remove(struct platform_device *pdev)
273 275
274static struct platform_driver gpio_flash_driver = { 276static struct platform_driver gpio_flash_driver = {
275 .probe = gpio_flash_probe, 277 .probe = gpio_flash_probe,
276 .remove = __devexit_p(gpio_flash_remove), 278 .remove = gpio_flash_remove,
277 .driver = { 279 .driver = {
278 .name = DRIVER_NAME, 280 .name = DRIVER_NAME,
279 }, 281 },