]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: synquacer: remove unused is_suspended flag
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 19 Dec 2018 16:48:19 +0000 (17:48 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 8 Jan 2019 20:02:48 +0000 (21:02 +0100)
This flag was defined and checked but never set a value. Remove it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-synquacer.c

index 2184b7c3580e0e19052f5bc72e8f2c8b5e7c12e9..d18b0941b71a4d37d5b896645c68a1ec4b8e49a4 100644 (file)
@@ -144,8 +144,6 @@ struct synquacer_i2c {
        u32                     timeout_ms;
        enum i2c_state          state;
        struct i2c_adapter      adapter;
-
-       bool                    is_suspended;
 };
 
 static inline int is_lastmsg(struct synquacer_i2c *i2c)
@@ -316,9 +314,6 @@ static int synquacer_i2c_doxfer(struct synquacer_i2c *i2c,
        unsigned long timeout;
        int ret;
 
-       if (i2c->is_suspended)
-               return -EBUSY;
-
        synquacer_i2c_hw_init(i2c);
        bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR);
        if (bsr & SYNQUACER_I2C_BSR_BB) {