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.
Signed-off-by: Lan Tianyu <firstname.lastname@example.org>
Signed-off-by: Len Brown <email@example.com>
(cherry picked from commit 6e17fb6aa1a67afa1827ae317c3594040f055730)