git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lis3lv02d: avoid divide by zero due to unchecked
[pandora-kernel.git]
/
drivers
/
platform
/
x86
/
hp_accel.c
diff --git
a/drivers/platform/x86/hp_accel.c
b/drivers/platform/x86/hp_accel.c
index
1b52d00
..
891e71f
100644
(file)
--- a/
drivers/platform/x86/hp_accel.c
+++ b/
drivers/platform/x86/hp_accel.c
@@
-354,8
+354,7
@@
static int lis3lv02d_suspend(struct acpi_device *device, pm_message_t state)
static int lis3lv02d_resume(struct acpi_device *device)
{
- lis3lv02d_poweron(&lis3_dev);
- return 0;
+ return lis3lv02d_poweron(&lis3_dev);
}
#else
#define lis3lv02d_suspend NULL