]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: maps: sc520cdp: fix warnings
authorBrian Norris <computersforpeace@gmail.com>
Mon, 12 May 2014 23:41:46 +0000 (16:41 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 28 May 2014 07:05:24 +0000 (00:05 -0700)
commit3a9f76bdf365efdc869125f9f2386643007f997b
treefc3301b513a7d8d431bb865494d0baf8f2ec9806
parented491d2063d41a09a35c7db1a99fea88dbfcd7aa
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 <computersforpeace@gmail.com>
drivers/mtd/maps/sc520cdp.c