From: Brian Norris Date: Mon, 12 May 2014 23:41:46 +0000 (-0700) Subject: mtd: maps: sc520cdp: fix warnings X-Git-Tag: omap-for-v3.16/fixes-against-rc1~57^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9f76bdf365efdc869125f9f2386643007f997b;p=pandora-kernel.git mtd: maps: sc520cdp: fix warnings On m86k, and maybe a few other architectures, we get this kind of warning, due to misuse of volatile: drivers/mtd/maps/sc520cdp.c: In function 'sc520cdp_setup_par': >> drivers/mtd/maps/sc520cdp.c:223:2: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [enabled by default] arch/m68k/include/asm/raw_io.h:22:13: note: expected 'void *' but argument is of type 'volatile long unsigned int *' Rather than annotating the variable declaration, let's just use the proper accessors, which add the 'volatile' qualifier to the operation. Signed-off-by: Brian Norris --- Reading git-diff-tree failed