regmap: async: Add missing return
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Mar 2013 13:08:44 +0000 (13:08 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Mar 2013 13:08:44 +0000 (13:08 +0000)
Let's only write once...

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c

index 3d23675..dd82acf 100644 (file)
@@ -1036,6 +1036,8 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
                        kfree(async->work_buf);
                        kfree(async);
                }
+
+               return ret;
        }
 
        trace_regmap_hw_write_start(map->dev, reg,