summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
commitfc54b9bf158eea9cae647ce2c58f7d9989af173a (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch
parentd9f49b62b28ebd245587854efa484974d90debbf (diff)
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch
new file mode 100644
index 0000000000..9bc0f50655
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1326-change-gta01-battery-driver-name.patch.patch
@@ -0,0 +1,37 @@
+From cfea911c6c57eebdfc1358ee47b3730514da6cf3 Mon Sep 17 00:00:00 2001
+From: \\\"Mike (mwester)\\ <mwester@dls.net>
+Date: Wed, 19 Nov 2008 13:11:56 +0000
+Subject: [PATCH] change-gta01-battery-driver-name.patch
+
+[Can this be added to "stable" please? Thanks! Simple, short,
+non-descriptive names seem to be the norm for the nodes beneath
+/sys/classes/power_supply, so there seems to be no reason to do
+differently for the GTA01, especially when doing so adds an
+unnecessary incompatibility.]
+
+ change-gta01-battery-driver-name.patch
+
+ This patch changes the name of the gta01 battery driver to "bat"
+ in order to maintain compatability with the gta02 device.
+
+ Signed-off-by: Mike Westerhof <mwester@dls.net>
+---
+ drivers/power/gta01_battery.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/power/gta01_battery.c b/drivers/power/gta01_battery.c
+index 5acb45c..2267ecf 100644
+--- a/drivers/power/gta01_battery.c
++++ b/drivers/power/gta01_battery.c
+@@ -70,7 +70,7 @@ static int __init gta01_bat_init(void)
+ {
+ int ret;
+
+- bat_pdev = platform_device_register_simple("gta01-battery", 0, NULL, 0);
++ bat_pdev = platform_device_register_simple("bat", 0, NULL, 0);
+ if (IS_ERR(bat_pdev))
+ return PTR_ERR(bat_pdev);
+
+--
+1.5.6.5
+