]> Git Repo - linux.git/commitdiff
i2c: mv64xxx: really allow I2C offloading
authorHezi Shahmoon <[email protected]>
Tue, 20 Oct 2015 14:32:24 +0000 (16:32 +0200)
committerWolfram Sang <[email protected]>
Thu, 22 Oct 2015 12:47:45 +0000 (14:47 +0200)
Commit 00d8689b85a7 ("i2c: mv64xxx: rework offload support to fix
several problems") completely reworked the offload support, but left a
debugging-related "return false" at the beginning of the
mv64xxx_i2c_can_offload() function. This has the unfortunate consequence
that offloading is in fact never used, which wasn't really the
intention.

This commit fixes that problem by removing the bogus "return false".

Fixes: 00d8689b85a7 ("i2c: mv64xxx: rework offload support to fix several problems")
Signed-off-by: Hezi Shahmoon <[email protected]>
[Thomas: reworked commit log and title.]
Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Cc: <[email protected]>
drivers/i2c/busses/i2c-mv64xxx.c

index 30059c1df2a3b57ea559fc984b559c79e2f06ce6..5801227b97ab089022f90608f6fc425ebd13cd87 100644 (file)
@@ -669,8 +669,6 @@ mv64xxx_i2c_can_offload(struct mv64xxx_i2c_data *drv_data)
        struct i2c_msg *msgs = drv_data->msgs;
        int num = drv_data->num_msgs;
 
-       return false;
-
        if (!drv_data->offload_enabled)
                return false;
 
This page took 0.046897 seconds and 4 git commands to generate.