---------- Forwarded message ----------
From: James Lancaster <deathstal...@gmail.com>
Date: Fri, Feb 19, 2010 at 10:36 AM
Subject: [Angstrom-devel] Kernel 2.6.32+2.6.33-rc8 compilation fix for
tosa [PATCH]
To: angstrom-distro-de...@linuxtogo.org


At some point between 2.6.29 and 2.6.32, there was a change in how the
batteries were accessed, the wm97xx_battery.c got changed, and this is
a port of that fix to tosa_battery.c

Also reported to kernel buzillla
http://bugzilla.kernel.org/show_bug.cgi?id=15354

----
diff -u linux-2.6.32/drivers/power/tosa_battery.c
fix/drivers/power/tosa_battery.c
--- linux-2.6.32/drivers/power/tosa_battery.c   2010-02-19
01:28:17.504925691 -0600
+++ fix/drivers/power/tosa_battery.c    2010-02-19 01:34:29.034947383 -0600
@@ -61,7 +61,7 @@
       mutex_lock(&bat_lock);
       gpio_set_value(bat->gpio_bat, 1);
       msleep(5);
-       value = wm97xx_read_aux_adc(bat->psy.dev->parent->driver_data,
+       value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy.dev->parent),
                       bat->adc_bat);
       gpio_set_value(bat->gpio_bat, 0);
       mutex_unlock(&bat_lock);
@@ -81,7 +81,7 @@
       mutex_lock(&bat_lock);
       gpio_set_value(bat->gpio_temp, 1);
       msleep(5);
-       value = wm97xx_read_aux_adc(bat->psy.dev->parent->driver_data,
+       value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy.dev->parent),
                       bat->adc_temp);
       gpio_set_value(bat->gpio_temp, 0);
       mutex_unlock(&bat_lock);

_______________________________________________
Angstrom-distro-devel mailing list
angstrom-distro-de...@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

_______________________________________________
Zaurus-devel mailing list
Zaurus-devel@lists.linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/zaurus-devel

Reply via email to