Skip to content

Commit

Permalink
[ARM] 5376/1: S3C24XX: Fix sparse errors in platform uncompress.h
Browse files Browse the repository at this point in the history
Ensure __iomem attribute is __force 'd off in the minimal
__raw_writel() implementation.

Signed-off-by: Simtec Linux Team <linux@simtec.co.uk>
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Daniel Silverstone authored and Russell King committed Feb 19, 2009
1 parent adf8b37 commit 1144d65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/plat-s3c/include/plat/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static inline void flush(void)
{
}

#define __raw_writel(d,ad) do { *((volatile unsigned int *)(ad)) = (d); } while(0)
#define __raw_writel(d, ad) \
do { \
*((volatile unsigned int __force *)(ad)) = (d); \
} while (0)

/* CONFIG_S3C_BOOT_WATCHDOG
*
Expand Down

0 comments on commit 1144d65

Please sign in to comment.