From: Ilkka Koskinen Date: Wed, 28 Sep 2011 00:50:35 +0000 (+1000) Subject: lis3-remove-the-references-to-the-global-variable-in-core-driver-fix X-Git-Tag: next-20110930~1^2~104 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=90c000f41f49a29b22fb2cc72a224b784d4309ea;p=karo-tx-linux.git lis3-remove-the-references-to-the-global-variable-in-core-driver-fix Signed-off-by: Ilkka Koskinen Signed-off-by: Éric Piel Signed-off-by: Andrew Morton <> --- diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index e67dceab552b..72a1f9266803 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c @@ -200,7 +200,7 @@ static int lis3lv02d_get_odr(struct lis3lv02d *lis3) u8 ctrl; int shift; - lis3->read(&lis3, CTRL_REG1, &ctrl); + lis3->read(lis3, CTRL_REG1, &ctrl); ctrl &= lis3->odr_mask; shift = ffs(lis3->odr_mask) - 1; return lis3->odrs[(ctrl >> shift)];