Skip to content
  • Jingoo Han's avatar
    mtd: impa7: add missing __iomem annotation · d1d90c99
    Jingoo Han authored
    
    
    Added missing __iomem annotation and used NULL instead of 0
    in order to fix the following sparse warnings:
    
    drivers/mtd/maps/impa7.c:82:32: warning: Using plain integer as NULL pointer
    drivers/mtd/maps/impa7.c:96:34: warning: cast removes address space of expression
    drivers/mtd/maps/impa7.c:96:34: warning: incorrect type in argument 1 (different address spaces)
    drivers/mtd/maps/impa7.c:96:34:    expected void volatile [noderef] <asn:2>*addr
    drivers/mtd/maps/impa7.c:96:34:    got void *<noident>
    drivers/mtd/maps/impa7.c:108:34: warning: cast removes address space of expression
    drivers/mtd/maps/impa7.c:108:34: warning: incorrect type in argument 1 (different address spaces)
    drivers/mtd/maps/impa7.c:108:34:    expected void volatile [noderef] <asn:2>*addr
    drivers/mtd/maps/impa7.c:108:34:    got void *<noident>
    drivers/mtd/maps/impa7.c:109:45: warning: Using plain integer as NULL pointer
    
    Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
    d1d90c99