diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2010-06-23 12:26:09 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:25:46 -0400 |
commit | 25c8f83864878e1ec95c0bd8273405ab415eb0a4 (patch) | |
tree | 77fbbb3f33c2aed206f28fff036ea3f9188bda59 /arch/mips/alchemy | |
parent | 4767d7ddbb904ac481bcf1340eae7758d124db96 (diff) |
MIPS: Alchemy: fix deprecated compile warnings
Replace deprecated DMA_32BIT_MASK with DMA_BIT_MASK. This is needed because
the new style platform makefiles will enable -Werror.
cc1: warnings being treated as errors
arch/mips/alchemy/devboards/db1200/platform.c:219: error: 'DMA_nnBIT_MASK' is deprecated
arch/mips/alchemy/devboards/db1200/platform.c:226: error: 'DMA_nnBIT_MASK' is deprecated
arch/mips/alchemy/devboards/db1200/platform.c:388: error: 'DMA_nnBIT_MASK' is deprecated
arch/mips/alchemy/devboards/db1200/platform.c:393: error: 'DMA_nnBIT_MASK' is deprecated
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
To: linux-mips@linux-mips.org
Acked-by: Manuel Lauss <manuel.lauss@googlemail.com>
Patchwork: https://patchwork.linux-mips.org/patch/1427/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy')
-rw-r--r-- | arch/mips/alchemy/devboards/db1200/platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/alchemy/devboards/db1200/platform.c b/arch/mips/alchemy/devboards/db1200/platform.c index 3cb95a98ab31..3fa34c3abc04 100644 --- a/arch/mips/alchemy/devboards/db1200/platform.c +++ b/arch/mips/alchemy/devboards/db1200/platform.c | |||
@@ -216,14 +216,14 @@ static struct resource db1200_ide_res[] = { | |||
216 | } | 216 | } |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static u64 ide_dmamask = DMA_32BIT_MASK; | 219 | static u64 ide_dmamask = DMA_BIT_MASK(32); |
220 | 220 | ||
221 | static struct platform_device db1200_ide_dev = { | 221 | static struct platform_device db1200_ide_dev = { |
222 | .name = "au1200-ide", | 222 | .name = "au1200-ide", |
223 | .id = 0, | 223 | .id = 0, |
224 | .dev = { | 224 | .dev = { |
225 | .dma_mask = &ide_dmamask, | 225 | .dma_mask = &ide_dmamask, |
226 | .coherent_dma_mask = DMA_32BIT_MASK, | 226 | .coherent_dma_mask = DMA_BIT_MASK(32), |
227 | }, | 227 | }, |
228 | .num_resources = ARRAY_SIZE(db1200_ide_res), | 228 | .num_resources = ARRAY_SIZE(db1200_ide_res), |
229 | .resource = db1200_ide_res, | 229 | .resource = db1200_ide_res, |
@@ -385,12 +385,12 @@ static struct au1550_spi_info db1200_spi_platdata = { | |||
385 | .activate_cs = db1200_spi_cs_en, | 385 | .activate_cs = db1200_spi_cs_en, |
386 | }; | 386 | }; |
387 | 387 | ||
388 | static u64 spi_dmamask = DMA_32BIT_MASK; | 388 | static u64 spi_dmamask = DMA_BIT_MASK(32); |
389 | 389 | ||
390 | static struct platform_device db1200_spi_dev = { | 390 | static struct platform_device db1200_spi_dev = { |
391 | .dev = { | 391 | .dev = { |
392 | .dma_mask = &spi_dmamask, | 392 | .dma_mask = &spi_dmamask, |
393 | .coherent_dma_mask = DMA_32BIT_MASK, | 393 | .coherent_dma_mask = DMA_BIT_MASK(32), |
394 | .platform_data = &db1200_spi_platdata, | 394 | .platform_data = &db1200_spi_platdata, |
395 | }, | 395 | }, |
396 | .name = "au1550-spi", | 396 | .name = "au1550-spi", |