pinctrl:fix irq operation bug
authorluowei <lw@rock-chips.com>
Mon, 30 Dec 2013 01:39:15 +0000 (09:39 +0800)
committerluowei <lw@rock-chips.com>
Mon, 30 Dec 2013 01:39:15 +0000 (09:39 +0800)
drivers/pinctrl/pinctrl-rockchip.c

index fff102b4eb503ca78c57b4a301f9710bfc41bc68..7ce7a95a6198d1a9645d61ae03931cba4543e8d8 100755 (executable)
@@ -1689,7 +1689,7 @@ static void rockchip_irq_demux(unsigned int irq, struct irq_desc *desc)
        u32 pend;
        bool edge_changed = false;
 
-       dev_dbg(bank->drvdata->dev, "got irq for bank %s\n", bank->name);
+       DBG_PINCTRL("%s:got irq for bank %s\n", __func__, bank->name);
 
        chained_irq_enter(chip, desc);
 
@@ -1830,9 +1830,11 @@ static inline void rockchip_gpio_bit_op(void __iomem *reg_base, unsigned int off
 {
        u32 val = __raw_readl(reg_base + offset);
        if (flag)
-               val |= bit;
+               val |= BIT(bit);
        else
-               val &= ~bit;
+               val &= ~BIT(bit);
+
+       
        __raw_writel(val, reg_base + offset);
 }