diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-07 03:16:36 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 16:51:48 -0400 |
commit | e51fb2cb2b6e1ea2c99ad5dbd332f2524a21b68a (patch) | |
tree | 549b5a6a9c1e774f66941d2dbefba6abdec7a355 | |
parent | 2fffc7982c990f089a4ab9bed10d90d1d657b3fc (diff) |
mtd: spear_smi: add missing __iomem annotation
Added missing __iomem annotation in order to fix the following
sparse warnings:
drivers/mtd/devices/spear_smi.c:566:13: warning: incorrect type in assignment (different address spaces)
drivers/mtd/devices/spear_smi.c:566:13: expected void *src
drivers/mtd/devices/spear_smi.c:566:13: got void [noderef] <asn:2>*
drivers/mtd/devices/spear_smi.c:586:9: warning: incorrect type in argument 2 (different address spaces)
drivers/mtd/devices/spear_smi.c:586:9: expected void const volatile [noderef] <asn:2>*<noident>
drivers/mtd/devices/spear_smi.c:586:9: got unsigned char [usertype] *<noident>
drivers/mtd/devices/spear_smi.c:659:14: warning: incorrect type in assignment (different address spaces)
drivers/mtd/devices/spear_smi.c:659:14: expected void *dest
drivers/mtd/devices/spear_smi.c:659:14: got void [noderef] <asn:2>*
drivers/mtd/devices/spear_smi.c:620:9: warning: incorrect type in argument 1 (different address spaces)
drivers/mtd/devices/spear_smi.c:620:9: expected void volatile [noderef] <asn:2>*<noident>
drivers/mtd/devices/spear_smi.c:620:9: got void *dest
drivers/mtd/devices/spear_smi.c:620:9: warning: incorrect type in argument 1 (different address spaces)
drivers/mtd/devices/spear_smi.c:620:9: expected void volatile [noderef] <asn:2>*<noident>
drivers/mtd/devices/spear_smi.c:620:9: got void *dest
drivers/mtd/devices/spear_smi.c:620:9: warning: incorrect type in argument 1 (different address spaces)
drivers/mtd/devices/spear_smi.c:620:9: expected void volatile [noderef] <asn:2>*<noident>
drivers/mtd/devices/spear_smi.c:620:9: got void *dest
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/devices/spear_smi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 092bb68b7742..423821412062 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c | |||
@@ -550,7 +550,7 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
550 | { | 550 | { |
551 | struct spear_snor_flash *flash = get_flash_data(mtd); | 551 | struct spear_snor_flash *flash = get_flash_data(mtd); |
552 | struct spear_smi *dev = mtd->priv; | 552 | struct spear_smi *dev = mtd->priv; |
553 | void *src; | 553 | void __iomem *src; |
554 | u32 ctrlreg1, val; | 554 | u32 ctrlreg1, val; |
555 | int ret; | 555 | int ret; |
556 | 556 | ||
@@ -583,7 +583,7 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
583 | 583 | ||
584 | writel(val, dev->io_base + SMI_CR1); | 584 | writel(val, dev->io_base + SMI_CR1); |
585 | 585 | ||
586 | memcpy_fromio(buf, (u8 *)src, len); | 586 | memcpy_fromio(buf, src, len); |
587 | 587 | ||
588 | /* restore ctrl reg1 */ | 588 | /* restore ctrl reg1 */ |
589 | writel(ctrlreg1, dev->io_base + SMI_CR1); | 589 | writel(ctrlreg1, dev->io_base + SMI_CR1); |
@@ -596,7 +596,7 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
596 | } | 596 | } |
597 | 597 | ||
598 | static inline int spear_smi_cpy_toio(struct spear_smi *dev, u32 bank, | 598 | static inline int spear_smi_cpy_toio(struct spear_smi *dev, u32 bank, |
599 | void *dest, const void *src, size_t len) | 599 | void __iomem *dest, const void *src, size_t len) |
600 | { | 600 | { |
601 | int ret; | 601 | int ret; |
602 | u32 ctrlreg1; | 602 | u32 ctrlreg1; |
@@ -643,7 +643,7 @@ static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
643 | { | 643 | { |
644 | struct spear_snor_flash *flash = get_flash_data(mtd); | 644 | struct spear_snor_flash *flash = get_flash_data(mtd); |
645 | struct spear_smi *dev = mtd->priv; | 645 | struct spear_smi *dev = mtd->priv; |
646 | void *dest; | 646 | void __iomem *dest; |
647 | u32 page_offset, page_size; | 647 | u32 page_offset, page_size; |
648 | int ret; | 648 | int ret; |
649 | 649 | ||