aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
commit6b7797688c8a7bde642afc2d9ba2658a1b57c0d5 (patch)
tree2d38a3789e27a423439c37a45a09cae31990a615 /target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch
parentc77724d127a6722cf74b4f0af314122aa06351fb (diff)
downloadupstream-6b7797688c8a7bde642afc2d9ba2658a1b57c0d5.tar.gz
upstream-6b7797688c8a7bde642afc2d9ba2658a1b57c0d5.tar.bz2
upstream-6b7797688c8a7bde642afc2d9ba2658a1b57c0d5.zip
nuke obsolete kernel stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14875 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch
deleted file mode 100644
index fb7d233976..0000000000
--- a/target/linux/s3c24xx/patches-2.6.24/1275-lis302dl-allow-unloading-module.patch.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 399efd68e115b6548fe943a7a9fbf04753970e61 Mon Sep 17 00:00:00 2001
-From: Simon Kagstrom <simon.kagstrom@gmail.com>
-Date: Wed, 13 Aug 2008 11:27:11 +0100
-Subject: [PATCH] lis302dl-allow-unloading-module.patch
-
-This patch fixes module unloading for the accelerometer (actually module
-loading failed before). The two problems were that the interrupt was not
-unregistered, and that the device was left in a "strange" state.
-
-Signed-off-by: Simon Kagstrom <simon.kagstrom@gmail.com>
----
- drivers/input/misc/lis302dl.c | 6 +++++-
- 1 files changed, 5 insertions(+), 1 deletions(-)
-
-diff --git a/drivers/input/misc/lis302dl.c b/drivers/input/misc/lis302dl.c
-index de8478d..b97cae7 100644
---- a/drivers/input/misc/lis302dl.c
-+++ b/drivers/input/misc/lis302dl.c
-@@ -462,11 +462,15 @@ static int __devexit lis302dl_remove(struct spi_device *spi)
- struct lis302dl_info *lis = dev_get_drvdata(&spi->dev);
- unsigned long flags;
-
-- /* power down the device */
-+ /* Reset and power down the device */
- local_save_flags(flags);
-+ reg_write(lis, LIS302DL_REG_CTRL3, 0x00);
-+ reg_write(lis, LIS302DL_REG_CTRL2, 0x00);
- reg_write(lis, LIS302DL_REG_CTRL1, 0x00);
- local_irq_restore(flags);
-
-+ /* Cleanup resources */
-+ free_irq(lis->spi_dev->irq, lis);
- sysfs_remove_group(&spi->dev.kobj, &lis302dl_attr_group);
- input_unregister_device(lis->input_dev);
- if (lis->input_dev)
---
-1.5.6.5
-