From: Lars-Peter Clausen Date: Mon, 24 May 2010 19:57:33 +0000 (+0200) Subject: bq27x00: Return -ENODEV for properties if the battery is not present X-Git-Tag: v2.6.39-rc1~56^2~10^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3413b4ea250ff0b4142a154a2764e33979957e8b;p=pandora-kernel.git bq27x00: Return -ENODEV for properties if the battery is not present This patch changes get_property callback of the bq27x00 battery to return -ENODEV for properties other then the PROP_PRESENT if the battery is not present. The power subsystem core expects a driver to behave that way. Signed-off-by: Lars-Peter Clausen Acked-by: Rodolfo Giometti Tested-by: Grazvydas Ignotas --- Reading git-diff-tree failed