Commit 8c8ee825 authored by Kristoffer Ericson's avatar Kristoffer Ericson Committed by Paul Mundt

sh: hp6xx: APM build fix and new battery values.

Build fixes for the hp6xx APM code, as well as some adjustments for
the battery values.
Signed-off-by: default avatarKristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9dd3f220
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
#define APM_CRITICAL 10 #define APM_CRITICAL 10
#define APM_LOW 30 #define APM_LOW 30
#define HP680_BATTERY_MAX 875 #define HP680_BATTERY_MAX 898
#define HP680_BATTERY_MIN 600 #define HP680_BATTERY_MIN 486
#define HP680_BATTERY_AC_ON 900 #define HP680_BATTERY_AC_ON 1023
#define MODNAME "hp6x0_apm" #define MODNAME "hp6x0_apm"
...@@ -65,7 +65,7 @@ static void hp6x0_apm_get_power_status(struct apm_power_info *info) ...@@ -65,7 +65,7 @@ static void hp6x0_apm_get_power_status(struct apm_power_info *info)
static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev) static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev)
{ {
if (!apm_suspended) if (!APM_DISABLED)
apm_queue_event(APM_USER_SUSPEND); apm_queue_event(APM_USER_SUSPEND);
return IRQ_HANDLED; return IRQ_HANDLED;
...@@ -91,7 +91,6 @@ static int __init hp6x0_apm_init(void) ...@@ -91,7 +91,6 @@ static int __init hp6x0_apm_init(void)
static void __exit hp6x0_apm_exit(void) static void __exit hp6x0_apm_exit(void)
{ {
free_irq(HP680_BTN_IRQ, 0); free_irq(HP680_BTN_IRQ, 0);
apm_get_info = NULL;
} }
module_init(hp6x0_apm_init); module_init(hp6x0_apm_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment