[POWERPC] Add missing native dcr dcr_ind_lock spinlock
authorValentine Barshak <vbarshak@ru.mvista.com>
Mon, 4 Feb 2008 14:57:55 +0000 (01:57 +1100)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Thu, 7 Feb 2008 03:02:56 +0000 (21:02 -0600)
The include/asm-powerpc/dcr-native.h declares extern spinlock_t dcr_ind_lock;
but it's actually isn't defined. This patch adds a missing dcr_ind_lock.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/sysdev/dcr.c

index 427027c7ea0f61fbeeb7192f2c1125cb64246d22..437e48d3ae3340d5817c10f20d2a6dfc8276daeb 100644 (file)
@@ -137,5 +137,6 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_c)
        h.token = NULL;
 }
 EXPORT_SYMBOL_GPL(dcr_unmap);
-
-#endif /* !defined(CONFIG_PPC_DCR_NATIVE) */
+#else  /* defined(CONFIG_PPC_DCR_NATIVE) */
+DEFINE_SPINLOCK(dcr_ind_lock);
+#endif /* !defined(CONFIG_PPC_DCR_NATIVE) */