summaryrefslogtreecommitdiff
path: root/drivers/misc/lis3lv02d/lis3lv02d_spi.c
diff options
context:
space:
mode:
authorÉric Piel <eric.piel@tremplin-utc.net>2011-11-01 04:11:02 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-11-01 04:30:52 +0400
commite1e5687d75ef0ea5cbae63df48ff2fdcb5306f66 (patch)
tree4831229322e0c7cff31a026270832a83eb51ccf9 /drivers/misc/lis3lv02d/lis3lv02d_spi.c
parentd7f81d4299cdc8cf06fc9562ec3dafce528bd6ff (diff)
downloadlinux-e1e5687d75ef0ea5cbae63df48ff2fdcb5306f66.tar.xz
lis3: change exported function to use passed parameter
Change exported functions to use the device given as parameter instead of the global one. Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net> Cc: Matthew Garrett <mjg@redhat.com> Cc: Witold Pilat <witold.pilat@gmail.com> Cc: Lyall Pearce <lyall.pearce@hp.com> Cc: Malte Starostik <m-starostik@versanet.de> Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Cc: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d_spi.c')
-rw-r--r--drivers/misc/lis3lv02d/lis3lv02d_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c
index c1f8a8fbf694..b2c1be12d16f 100644
--- a/drivers/misc/lis3lv02d/lis3lv02d_spi.c
+++ b/drivers/misc/lis3lv02d/lis3lv02d_spi.c
@@ -83,7 +83,7 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi)
static int __devexit lis302dl_spi_remove(struct spi_device *spi)
{
struct lis3lv02d *lis3 = spi_get_drvdata(spi);
- lis3lv02d_joystick_disable();
+ lis3lv02d_joystick_disable(lis3);
lis3lv02d_poweroff(lis3);
return lis3lv02d_remove_fs(&lis3_dev);