There is no need to do irqsave and irqrestore in context of hard IRQ.
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
 {
        struct dc_i2c *i2c = dev_id;
        int cmd_status = dc_i2c_cmd_status(i2c);
-       unsigned long flags;
        u8 addr_cmd;
 
        writeb_relaxed(1, i2c->regs + II_INTFLAG_CLEAR);
 
-       spin_lock_irqsave(&i2c->lock, flags);
+       spin_lock(&i2c->lock);
 
        if (cmd_status == II_CMD_STATUS_ACK_BAD
            || cmd_status == II_CMD_STATUS_ABORT) {
        }
 
 out:
-       spin_unlock_irqrestore(&i2c->lock, flags);
+       spin_unlock(&i2c->lock);
        return IRQ_HANDLED;
 }
 
 
        unsigned short intst;
        unsigned short intmsk;
        struct jz4780_i2c *i2c = dev_id;
-       unsigned long flags;
 
-       spin_lock_irqsave(&i2c->lock, flags);
+       spin_lock(&i2c->lock);
        intmsk = jz4780_i2c_readw(i2c, JZ4780_I2C_INTM);
        intst = jz4780_i2c_readw(i2c, JZ4780_I2C_INTST);
 
        }
 
 done:
-       spin_unlock_irqrestore(&i2c->lock, flags);
+       spin_unlock(&i2c->lock);
        return IRQ_HANDLED;
 }