From: Lan Tianyu Date: Thu, 30 Jun 2011 03:33:58 +0000 (+0800) Subject: ACPI / Battery: Add the check before refresh sysfs in the battery_notify() X-Git-Tag: v3.1-rc1~80^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e17fb6aa1a67afa1827ae317c3594040f055730;p=pandora-kernel.git ACPI / Battery: Add the check before refresh sysfs in the battery_notify() In the commit 25be5821, add the refresh sysfs when system resumes from suspending. But it didn't check that the battery exists. This will cause battery sysfs files added when the battery doesn't exist. This patch add the check before refreshing. https://bugzilla.kernel.org/show_bug.cgi?id=35642 Signed-off-by: Lan Tianyu Signed-off-by: Len Brown --- Reading git-diff-tree failed