aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-09-13 16:30:10 +0200
committerKoen Kooi <koen@openembedded.org>2009-09-15 19:26:15 +0200
commitd861047e32eacf91974108a5eeba1f847bad5b9f (patch)
treeac07eaf5fe935b4f58aae20528f3cf101b712549 /recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch
parent72c1fd8a2b6ab59a28467c033ec7fa18cfb67225 (diff)
downloadopenembedded-d861047e32eacf91974108a5eeba1f847bad5b9f.tar.gz
linux-omap 2.6.29: add support for the omap3-touchbook
Diffstat (limited to 'recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch')
-rw-r--r--recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch b/recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch
new file mode 100644
index 0000000000..eb7c8c9699
--- /dev/null
+++ b/recipes/linux/linux-omap-2.6.29/omap3-touchbook/battery2-bq27200-no-error-message.patch
@@ -0,0 +1,39 @@
+--- a/drivers/power/bq27x00_battery.c
++++ b/drivers/power/bq27x00_battery.c
+@@ -93,7 +93,6 @@ static int bq27x00_battery_temperature(struct bq27x00_device_info *di)
+
+ ret = bq27x00_read(BQ27x00_REG_TEMP, &temp, 0, di);
+ if (ret) {
+- dev_err(di->dev, "error reading temperature\n");
+ return ret;
+ }
+
+@@ -111,7 +110,6 @@ static int bq27x00_battery_voltage(struct bq27x00_device_info *di)
+
+ ret = bq27x00_read(BQ27x00_REG_VOLT, &volt, 0, di);
+ if (ret) {
+- dev_err(di->dev, "error reading voltage\n");
+ return ret;
+ }
+
+@@ -131,12 +129,10 @@ static int bq27x00_battery_current(struct bq27x00_device_info *di)
+
+ ret = bq27x00_read(BQ27x00_REG_AI, &curr, 0, di);
+ if (ret) {
+- dev_err(di->dev, "error reading current\n");
+ return 0;
+ }
+ ret = bq27x00_read(BQ27x00_REG_FLAGS, &flags, 0, di);
+ if (ret < 0) {
+- dev_err(di->dev, "error reading flags\n");
+ return 0;
+ }
+ if ((flags & (1 << 7)) != 0) {
+@@ -157,7 +153,6 @@ static int bq27x00_battery_rsoc(struct bq27x00_device_info *di)
+
+ ret = bq27x00_read(BQ27x00_REG_RSOC, &rsoc, 1, di);
+ if (ret) {
+- dev_err(di->dev, "error reading relative State-of-Charge\n");
+ return ret;
+ }
+