linux-uconsole/drivers/mtd/maps
Uwe Kleine-König 7f9e2ccd7f mtd: dc21285: use raw spinlock functions for nw_gpio_lock
commit e5babdf928 upstream.

Since commit bd31b85960 (which is in 3.2-rc1) nw_gpio_lock is a raw spinlock
that needs usage of the corresponding raw functions.

This fixes:

  drivers/mtd/maps/dc21285.c: In function 'nw_en_write':
  drivers/mtd/maps/dc21285.c:41:340: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type
    spin_lock_irqsave(&nw_gpio_lock, flags);

  In file included from include/linux/seqlock.h:35:0,
                   from include/linux/time.h:5,
                   from include/linux/stat.h:18,
                   from include/linux/module.h:10,
                   from drivers/mtd/maps/dc21285.c:8:
  include/linux/spinlock.h:299:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'
   static inline raw_spinlock_t *spinlock_check(spinlock_t *lock)
                                                                                                        ^
  drivers/mtd/maps/dc21285.c:43:25: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type
    spin_unlock_irqrestore(&nw_gpio_lock, flags);
                           ^
  In file included from include/linux/seqlock.h:35:0,
                   from include/linux/time.h:5,
                   from include/linux/stat.h:18,
                   from include/linux/module.h:10,
                   from drivers/mtd/maps/dc21285.c:8:
  include/linux/spinlock.h:370:91: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *'
   static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)

Fixes: bd31b85960 ("locking, ARM: Annotate low level hw locks as raw")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-03 09:29:41 -07:00
..
amd76xrom.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
autcpu12-nvram.c mtd: Convert to devm_ioremap_resource() 2013-01-25 12:21:47 -08:00
bfin-async-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
cfi_flagadm.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
ck804xrom.c mtd: maps: Remove redundant NULL check before kfree 2013-04-05 12:54:27 +01:00
dc21285.c mtd: dc21285: use raw spinlock functions for nw_gpio_lock 2015-08-03 09:29:41 -07:00
esb2rom.c Drivers: mtd: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
gpio-addr-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
ichxrom.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
impa7.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
intel_vr_nor.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
ixp4xx.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
Kconfig - Lots of cleanups from Artem, including deletion of some obsolete drivers 2013-05-09 10:15:46 -07:00
l440gx.c mtd: maps: l440gx: Add reference counter to set_vpp() 2012-03-27 00:52:49 +01:00
lantiq-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
latch-addr-flash.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
Makefile mtd: remove h720x flash support 2013-04-05 13:19:36 +01:00
map_funcs.c
netsc520.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
nettel.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
octagon-5066.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pci.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
pcmciamtd.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
physmap.c mtd: physmap: add const qualifiers 2013-04-05 13:02:40 +01:00
physmap_of.c mtd: physmap_of: add const qualifiers 2013-04-05 13:04:13 +01:00
pismo.c Drivers: mtd: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
plat-ram.c mtd: plat-ram: add const quilifiers 2013-04-05 13:02:33 +01:00
pmcmsp-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pxa2xx-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
rbtx4939-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
sa1100-flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
sbc_gxx.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sc520cdp.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
scb2_flash.c Drivers: mtd: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
scx200_docflash.c mtd: scx200_docflash: convert to mtd_device_register() 2011-05-25 02:22:04 +01:00
solutionengine.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
sun_uflash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
ts5500_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
tsunami_flash.c mtd: maps: add const qualifiers 2013-04-05 13:04:20 +01:00
uclinux.c mtd: uclinux: add a comment about why uclinux_ram_map must not be static 2013-02-04 09:26:30 +02:00
vmax301.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
vmu-flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00