staging: vchiq_arm: Use define for doorbell irq
[sfrench/cifs-2.6.git] / drivers / staging / vc04_services / interface / vchiq_arm / vchiq_2835_arm.c
index c3fbb29741f0d5b4e143e533d3835b4e36291f85..30d6f1a404ba2817b725ba8808587f072cdef347 100644 (file)
@@ -29,6 +29,8 @@
 #define BELL0  0x00
 #define BELL2  0x08
 
+#define ARM_DS_ACTIVE  BIT(2)
+
 struct vchiq_2835_state {
        int inited;
        struct vchiq_arm_state arm_state;
@@ -269,7 +271,7 @@ vchiq_doorbell_irq(int irq, void *dev_id)
        /* Read (and clear) the doorbell */
        status = readl(g_regs + BELL0);
 
-       if (status & 0x4) {  /* Was the doorbell rung? */
+       if (status & ARM_DS_ACTIVE) {  /* Was the doorbell rung? */
                remote_event_pollall(state);
                ret = IRQ_HANDLED;
        }