aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/bfin-async-flash.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-01-17 10:52:46 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-25 06:35:14 -0500
commit4335c1003ed05d5d5a386cd8008fc06a6d424ca2 (patch)
tree169f8ad13610716ccb6fbde060d2ac154c7ba26b /drivers/mtd/maps/bfin-async-flash.c
parentbcc98a46eafd38968b05e793326f031988c2b2a8 (diff)
mtd: maps: Blackfin async: rename local funcs to avoid common clashes
There are new Blackfin MMR helper functions that use the same name as some of the local functions in this driver, so have the driver use more specific names to avoid the issue. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/bfin-async-flash.c')
-rw-r--r--drivers/mtd/maps/bfin-async-flash.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mtd/maps/bfin-async-flash.c b/drivers/mtd/maps/bfin-async-flash.c
index a7c808b577d3..5824fd49800c 100644
--- a/drivers/mtd/maps/bfin-async-flash.c
+++ b/drivers/mtd/maps/bfin-async-flash.c
@@ -69,7 +69,7 @@ static void switch_back(struct async_state *state)
69 local_irq_restore(state->irq_flags); 69 local_irq_restore(state->irq_flags);
70} 70}
71 71
72static map_word bfin_read(struct map_info *map, unsigned long ofs) 72static map_word bfin_flash_read(struct map_info *map, unsigned long ofs)
73{ 73{
74 struct async_state *state = (struct async_state *)map->map_priv_1; 74 struct async_state *state = (struct async_state *)map->map_priv_1;
75 uint16_t word; 75 uint16_t word;
@@ -85,7 +85,7 @@ static map_word bfin_read(struct map_info *map, unsigned long ofs)
85 return test; 85 return test;
86} 86}
87 87
88static void bfin_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) 88static void bfin_flash_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
89{ 89{
90 struct async_state *state = (struct async_state *)map->map_priv_1; 90 struct async_state *state = (struct async_state *)map->map_priv_1;
91 91
@@ -96,7 +96,7 @@ static void bfin_copy_from(struct map_info *map, void *to, unsigned long from, s
96 switch_back(state); 96 switch_back(state);
97} 97}
98 98
99static void bfin_write(struct map_info *map, map_word d1, unsigned long ofs) 99static void bfin_flash_write(struct map_info *map, map_word d1, unsigned long ofs)
100{ 100{
101 struct async_state *state = (struct async_state *)map->map_priv_1; 101 struct async_state *state = (struct async_state *)map->map_priv_1;
102 uint16_t d; 102 uint16_t d;
@@ -111,7 +111,7 @@ static void bfin_write(struct map_info *map, map_word d1, unsigned long ofs)
111 switch_back(state); 111 switch_back(state);
112} 112}
113 113
114static void bfin_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) 114static void bfin_flash_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
115{ 115{
116 struct async_state *state = (struct async_state *)map->map_priv_1; 116 struct async_state *state = (struct async_state *)map->map_priv_1;
117 117
@@ -140,10 +140,10 @@ static int __devinit bfin_flash_probe(struct platform_device *pdev)
140 return -ENOMEM; 140 return -ENOMEM;
141 141
142 state->map.name = DRIVER_NAME; 142 state->map.name = DRIVER_NAME;
143 state->map.read = bfin_read; 143 state->map.read = bfin_flash_read;
144 state->map.copy_from = bfin_copy_from; 144 state->map.copy_from = bfin_flash_copy_from;
145 state->map.write = bfin_write; 145 state->map.write = bfin_flash_write;
146 state->map.copy_to = bfin_copy_to; 146 state->map.copy_to = bfin_flash_copy_to;
147 state->map.bankwidth = pdata->width; 147 state->map.bankwidth = pdata->width;
148 state->map.size = memory->end - memory->start + 1; 148 state->map.size = memory->end - memory->start + 1;
149 state->map.virt = (void __iomem *)memory->start; 149 state->map.virt = (void __iomem *)memory->start;