Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68242
b: refs/heads/master
c: 8c8ee82
h: refs/heads/master
v: v3
  • Loading branch information
Kristoffer Ericson authored and Paul Mundt committed Sep 21, 2007
1 parent a30c2d3 commit 9739072
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9dd3f2205330a52674d7c015109813f639af0f14
refs/heads/master: 8c8ee8254767d517907418d88492d4d91f10aca1
9 changes: 4 additions & 5 deletions trunk/arch/sh/boards/hp6xx/hp6xx_apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#define APM_CRITICAL 10
#define APM_LOW 30

#define HP680_BATTERY_MAX 875
#define HP680_BATTERY_MIN 600
#define HP680_BATTERY_AC_ON 900
#define HP680_BATTERY_MAX 898
#define HP680_BATTERY_MIN 486
#define HP680_BATTERY_AC_ON 1023

#define MODNAME "hp6x0_apm"

Expand Down Expand Up @@ -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)
{
if (!apm_suspended)
if (!APM_DISABLED)
apm_queue_event(APM_USER_SUSPEND);

return IRQ_HANDLED;
Expand All @@ -91,7 +91,6 @@ static int __init hp6x0_apm_init(void)
static void __exit hp6x0_apm_exit(void)
{
free_irq(HP680_BTN_IRQ, 0);
apm_get_info = NULL;
}

module_init(hp6x0_apm_init);
Expand Down

0 comments on commit 9739072

Please sign in to comment.