Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Convert the remaining SPIN_LOCK_UNLOCKED instances to DEFINE_SPINLOCK. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+6 -6
+1 -1
arch/mips/au1000/common/dbdma.c
··· 58 58 * functions. The drivers allocate the data buffers and assign them 59 59 * to the descriptors. 60 60 */ 61 - static spinlock_t au1xxx_dbdma_spin_lock = SPIN_LOCK_UNLOCKED; 61 + static DEFINE_SPINLOCK(au1xxx_dbdma_spin_lock); 62 62 63 63 /* I couldn't find a macro that did this...... 64 64 */
+1 -1
arch/mips/pci/ops-nile4.c
··· 15 15 16 16 volatile unsigned long *const vrc_pciregs = (void *) Vrc5074_BASE; 17 17 18 - static spinlock_t nile4_pci_lock; 18 + static DEFINE_SPINLOCK(nile4_pci_lock); 19 19 20 20 static int nile4_pcibios_config_access(unsigned char access_type, 21 21 struct pci_bus *bus, unsigned int devfn, int where, u32 * val)
+1 -1
arch/mips/pmc-sierra/yosemite/smp.c
··· 9 9 10 10 #define LAUNCHSTACK_SIZE 256 11 11 12 - static spinlock_t launch_lock __initdata; 12 + static __initdata DEFINE_SPINLOCK(launch_lock); 13 13 14 14 static unsigned long secondary_sp __initdata; 15 15 static unsigned long secondary_gp __initdata;
+1 -1
arch/mips/vr41xx/common/cmu.c
··· 69 69 70 70 static void __iomem *cmu_base; 71 71 static uint16_t cmuclkmsk, cmuclkmsk2; 72 - static spinlock_t cmu_lock; 72 + static DEFINE_SPINLOCK(cmu_lock); 73 73 74 74 #define cmu_read(offset) readw(cmu_base + (offset)) 75 75 #define cmu_write(offset, value) writew((value), cmu_base + (offset))
+2 -2
arch/mips/vr41xx/common/vrc4173.c
··· 81 81 static int vrc4173_initialized; 82 82 static uint16_t vrc4173_cmuclkmsk; 83 83 static uint16_t vrc4173_selectreg; 84 - static spinlock_t vrc4173_cmu_lock; 85 - static spinlock_t vrc4173_giu_lock; 84 + static DEFINE_SPINLOCK(vrc4173_cmu_lock); 85 + static DEFINE_SPINLOCK(vrc4173_giu_lock); 86 86 87 87 static inline void set_cmusrst(uint16_t val) 88 88 {