Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245353
b: refs/heads/master
c: 9053398
h: refs/heads/master
i:
  245351: 747f6a8
v: v3
  • Loading branch information
Rafael J. Wysocki committed Apr 24, 2011
1 parent f349ee1 commit ed16bb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 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: b7808056141bc4d67213036921a5a685ebec0274
refs/heads/master: 905339807bde7bb726001b69fbdf69ab0cf69a9e
19 changes: 6 additions & 13 deletions trunk/arch/arm/mach-sa1100/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/ioport.h>
#include <linux/sysdev.h>
#include <linux/syscore_ops.h>

#include <mach/hardware.h>
#include <asm/mach/irq.h>
Expand Down Expand Up @@ -234,7 +234,7 @@ static struct sa1100irq_state {
unsigned int iccr;
} sa1100irq_state;

static int sa1100irq_suspend(struct sys_device *dev, pm_message_t state)
static int sa1100irq_suspend(void)
{
struct sa1100irq_state *st = &sa1100irq_state;

Expand Down Expand Up @@ -264,7 +264,7 @@ static int sa1100irq_suspend(struct sys_device *dev, pm_message_t state)
return 0;
}

static int sa1100irq_resume(struct sys_device *dev)
static void sa1100irq_resume(void)
{
struct sa1100irq_state *st = &sa1100irq_state;

Expand All @@ -277,24 +277,17 @@ static int sa1100irq_resume(struct sys_device *dev)

ICMR = st->icmr;
}
return 0;
}

static struct sysdev_class sa1100irq_sysclass = {
.name = "sa11x0-irq",
static struct syscore_ops sa1100irq_syscore_ops = {
.suspend = sa1100irq_suspend,
.resume = sa1100irq_resume,
};

static struct sys_device sa1100irq_device = {
.id = 0,
.cls = &sa1100irq_sysclass,
};

static int __init sa1100irq_init_devicefs(void)
{
sysdev_class_register(&sa1100irq_sysclass);
return sysdev_register(&sa1100irq_device);
register_syscore_ops(&sa1100irq_syscore_ops);
return 0;
}

device_initcall(sa1100irq_init_devicefs);
Expand Down

0 comments on commit ed16bb8

Please sign in to comment.