diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-06 22:01:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:11 -0400 |
commit | 284901a90a9e0b812ca3f5f852cbbfb60d10249d (patch) | |
tree | 06c1b5a0f83c90cfb662f756e7781977ce739ce8 /arch/mips/alchemy | |
parent | 6afd142fd0dfba497246d0fab236c20a7b4bf778 (diff) |
dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/alchemy')
-rw-r--r-- | arch/mips/alchemy/common/platform.c | 30 | ||||
-rw-r--r-- | arch/mips/alchemy/devboards/pb1200/platform.c | 4 |
2 files changed, 17 insertions, 17 deletions
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c index 5c76c6448e04..117f99f70649 100644 --- a/arch/mips/alchemy/common/platform.c +++ b/arch/mips/alchemy/common/platform.c | |||
@@ -80,14 +80,14 @@ static struct resource au1xxx_usb_ohci_resources[] = { | |||
80 | }; | 80 | }; |
81 | 81 | ||
82 | /* The dmamask must be set for OHCI to work */ | 82 | /* The dmamask must be set for OHCI to work */ |
83 | static u64 ohci_dmamask = DMA_32BIT_MASK; | 83 | static u64 ohci_dmamask = DMA_BIT_MASK(32); |
84 | 84 | ||
85 | static struct platform_device au1xxx_usb_ohci_device = { | 85 | static struct platform_device au1xxx_usb_ohci_device = { |
86 | .name = "au1xxx-ohci", | 86 | .name = "au1xxx-ohci", |
87 | .id = 0, | 87 | .id = 0, |
88 | .dev = { | 88 | .dev = { |
89 | .dma_mask = &ohci_dmamask, | 89 | .dma_mask = &ohci_dmamask, |
90 | .coherent_dma_mask = DMA_32BIT_MASK, | 90 | .coherent_dma_mask = DMA_BIT_MASK(32), |
91 | }, | 91 | }, |
92 | .num_resources = ARRAY_SIZE(au1xxx_usb_ohci_resources), | 92 | .num_resources = ARRAY_SIZE(au1xxx_usb_ohci_resources), |
93 | .resource = au1xxx_usb_ohci_resources, | 93 | .resource = au1xxx_usb_ohci_resources, |
@@ -109,14 +109,14 @@ static struct resource au1100_lcd_resources[] = { | |||
109 | } | 109 | } |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static u64 au1100_lcd_dmamask = DMA_32BIT_MASK; | 112 | static u64 au1100_lcd_dmamask = DMA_BIT_MASK(32); |
113 | 113 | ||
114 | static struct platform_device au1100_lcd_device = { | 114 | static struct platform_device au1100_lcd_device = { |
115 | .name = "au1100-lcd", | 115 | .name = "au1100-lcd", |
116 | .id = 0, | 116 | .id = 0, |
117 | .dev = { | 117 | .dev = { |
118 | .dma_mask = &au1100_lcd_dmamask, | 118 | .dma_mask = &au1100_lcd_dmamask, |
119 | .coherent_dma_mask = DMA_32BIT_MASK, | 119 | .coherent_dma_mask = DMA_BIT_MASK(32), |
120 | }, | 120 | }, |
121 | .num_resources = ARRAY_SIZE(au1100_lcd_resources), | 121 | .num_resources = ARRAY_SIZE(au1100_lcd_resources), |
122 | .resource = au1100_lcd_resources, | 122 | .resource = au1100_lcd_resources, |
@@ -138,14 +138,14 @@ static struct resource au1xxx_usb_ehci_resources[] = { | |||
138 | }, | 138 | }, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static u64 ehci_dmamask = DMA_32BIT_MASK; | 141 | static u64 ehci_dmamask = DMA_BIT_MASK(32); |
142 | 142 | ||
143 | static struct platform_device au1xxx_usb_ehci_device = { | 143 | static struct platform_device au1xxx_usb_ehci_device = { |
144 | .name = "au1xxx-ehci", | 144 | .name = "au1xxx-ehci", |
145 | .id = 0, | 145 | .id = 0, |
146 | .dev = { | 146 | .dev = { |
147 | .dma_mask = &ehci_dmamask, | 147 | .dma_mask = &ehci_dmamask, |
148 | .coherent_dma_mask = DMA_32BIT_MASK, | 148 | .coherent_dma_mask = DMA_BIT_MASK(32), |
149 | }, | 149 | }, |
150 | .num_resources = ARRAY_SIZE(au1xxx_usb_ehci_resources), | 150 | .num_resources = ARRAY_SIZE(au1xxx_usb_ehci_resources), |
151 | .resource = au1xxx_usb_ehci_resources, | 151 | .resource = au1xxx_usb_ehci_resources, |
@@ -165,14 +165,14 @@ static struct resource au1xxx_usb_gdt_resources[] = { | |||
165 | }, | 165 | }, |
166 | }; | 166 | }; |
167 | 167 | ||
168 | static u64 udc_dmamask = DMA_32BIT_MASK; | 168 | static u64 udc_dmamask = DMA_BIT_MASK(32); |
169 | 169 | ||
170 | static struct platform_device au1xxx_usb_gdt_device = { | 170 | static struct platform_device au1xxx_usb_gdt_device = { |
171 | .name = "au1xxx-udc", | 171 | .name = "au1xxx-udc", |
172 | .id = 0, | 172 | .id = 0, |
173 | .dev = { | 173 | .dev = { |
174 | .dma_mask = &udc_dmamask, | 174 | .dma_mask = &udc_dmamask, |
175 | .coherent_dma_mask = DMA_32BIT_MASK, | 175 | .coherent_dma_mask = DMA_BIT_MASK(32), |
176 | }, | 176 | }, |
177 | .num_resources = ARRAY_SIZE(au1xxx_usb_gdt_resources), | 177 | .num_resources = ARRAY_SIZE(au1xxx_usb_gdt_resources), |
178 | .resource = au1xxx_usb_gdt_resources, | 178 | .resource = au1xxx_usb_gdt_resources, |
@@ -192,14 +192,14 @@ static struct resource au1xxx_usb_otg_resources[] = { | |||
192 | }, | 192 | }, |
193 | }; | 193 | }; |
194 | 194 | ||
195 | static u64 uoc_dmamask = DMA_32BIT_MASK; | 195 | static u64 uoc_dmamask = DMA_BIT_MASK(32); |
196 | 196 | ||
197 | static struct platform_device au1xxx_usb_otg_device = { | 197 | static struct platform_device au1xxx_usb_otg_device = { |
198 | .name = "au1xxx-uoc", | 198 | .name = "au1xxx-uoc", |
199 | .id = 0, | 199 | .id = 0, |
200 | .dev = { | 200 | .dev = { |
201 | .dma_mask = &uoc_dmamask, | 201 | .dma_mask = &uoc_dmamask, |
202 | .coherent_dma_mask = DMA_32BIT_MASK, | 202 | .coherent_dma_mask = DMA_BIT_MASK(32), |
203 | }, | 203 | }, |
204 | .num_resources = ARRAY_SIZE(au1xxx_usb_otg_resources), | 204 | .num_resources = ARRAY_SIZE(au1xxx_usb_otg_resources), |
205 | .resource = au1xxx_usb_otg_resources, | 205 | .resource = au1xxx_usb_otg_resources, |
@@ -218,20 +218,20 @@ static struct resource au1200_lcd_resources[] = { | |||
218 | } | 218 | } |
219 | }; | 219 | }; |
220 | 220 | ||
221 | static u64 au1200_lcd_dmamask = DMA_32BIT_MASK; | 221 | static u64 au1200_lcd_dmamask = DMA_BIT_MASK(32); |
222 | 222 | ||
223 | static struct platform_device au1200_lcd_device = { | 223 | static struct platform_device au1200_lcd_device = { |
224 | .name = "au1200-lcd", | 224 | .name = "au1200-lcd", |
225 | .id = 0, | 225 | .id = 0, |
226 | .dev = { | 226 | .dev = { |
227 | .dma_mask = &au1200_lcd_dmamask, | 227 | .dma_mask = &au1200_lcd_dmamask, |
228 | .coherent_dma_mask = DMA_32BIT_MASK, | 228 | .coherent_dma_mask = DMA_BIT_MASK(32), |
229 | }, | 229 | }, |
230 | .num_resources = ARRAY_SIZE(au1200_lcd_resources), | 230 | .num_resources = ARRAY_SIZE(au1200_lcd_resources), |
231 | .resource = au1200_lcd_resources, | 231 | .resource = au1200_lcd_resources, |
232 | }; | 232 | }; |
233 | 233 | ||
234 | static u64 au1xxx_mmc_dmamask = DMA_32BIT_MASK; | 234 | static u64 au1xxx_mmc_dmamask = DMA_BIT_MASK(32); |
235 | 235 | ||
236 | extern struct au1xmmc_platform_data au1xmmc_platdata[2]; | 236 | extern struct au1xmmc_platform_data au1xmmc_platdata[2]; |
237 | 237 | ||
@@ -263,7 +263,7 @@ static struct platform_device au1200_mmc0_device = { | |||
263 | .id = 0, | 263 | .id = 0, |
264 | .dev = { | 264 | .dev = { |
265 | .dma_mask = &au1xxx_mmc_dmamask, | 265 | .dma_mask = &au1xxx_mmc_dmamask, |
266 | .coherent_dma_mask = DMA_32BIT_MASK, | 266 | .coherent_dma_mask = DMA_BIT_MASK(32), |
267 | .platform_data = &au1xmmc_platdata[0], | 267 | .platform_data = &au1xmmc_platdata[0], |
268 | }, | 268 | }, |
269 | .num_resources = ARRAY_SIZE(au1200_mmc0_resources), | 269 | .num_resources = ARRAY_SIZE(au1200_mmc0_resources), |
@@ -299,7 +299,7 @@ static struct platform_device au1200_mmc1_device = { | |||
299 | .id = 1, | 299 | .id = 1, |
300 | .dev = { | 300 | .dev = { |
301 | .dma_mask = &au1xxx_mmc_dmamask, | 301 | .dma_mask = &au1xxx_mmc_dmamask, |
302 | .coherent_dma_mask = DMA_32BIT_MASK, | 302 | .coherent_dma_mask = DMA_BIT_MASK(32), |
303 | .platform_data = &au1xmmc_platdata[1], | 303 | .platform_data = &au1xmmc_platdata[1], |
304 | }, | 304 | }, |
305 | .num_resources = ARRAY_SIZE(au1200_mmc1_resources), | 305 | .num_resources = ARRAY_SIZE(au1200_mmc1_resources), |
diff --git a/arch/mips/alchemy/devboards/pb1200/platform.c b/arch/mips/alchemy/devboards/pb1200/platform.c index 0d68e1985ffd..b93dff4a6789 100644 --- a/arch/mips/alchemy/devboards/pb1200/platform.c +++ b/arch/mips/alchemy/devboards/pb1200/platform.c | |||
@@ -119,14 +119,14 @@ static struct resource ide_resources[] = { | |||
119 | } | 119 | } |
120 | }; | 120 | }; |
121 | 121 | ||
122 | static u64 ide_dmamask = DMA_32BIT_MASK; | 122 | static u64 ide_dmamask = DMA_BIT_MASK(32); |
123 | 123 | ||
124 | static struct platform_device ide_device = { | 124 | static struct platform_device ide_device = { |
125 | .name = "au1200-ide", | 125 | .name = "au1200-ide", |
126 | .id = 0, | 126 | .id = 0, |
127 | .dev = { | 127 | .dev = { |
128 | .dma_mask = &ide_dmamask, | 128 | .dma_mask = &ide_dmamask, |
129 | .coherent_dma_mask = DMA_32BIT_MASK, | 129 | .coherent_dma_mask = DMA_BIT_MASK(32), |
130 | }, | 130 | }, |
131 | .num_resources = ARRAY_SIZE(ide_resources), | 131 | .num_resources = ARRAY_SIZE(ide_resources), |
132 | .resource = ide_resources | 132 | .resource = ide_resources |