ssb: Make the GPIO API reentrancy safe
[safe/jmp/linux-2.6] / include / linux / ssb / ssb.h
index 9d5da8b..d14c036 100644 (file)
@@ -283,6 +283,11 @@ struct ssb_bus {
        /* Contents of the SPROM. */
        struct ssb_sprom sprom;
 
+#ifdef CONFIG_SSB_EMBEDDED
+       /* Lock for GPIO register access. */
+       spinlock_t gpio_lock;
+#endif /* EMBEDDED */
+
        /* Internal-only stuff follows. Do not touch. */
        struct list_head list;
 #ifdef CONFIG_SSB_DEBUG