From: Ilkka Koskinen Date: Wed, 5 Oct 2011 00:43:23 +0000 (+1100) Subject: lis3-remove-the-references-to-the-global-variable-in-core-driver-fix X-Git-Tag: next-20111005~2^2~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26b0e4d022eb50ae3d192c345bc8e6989d8e228f;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 fca1f8e223f6..29d12a70eb1b 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)];