Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245358
b: refs/heads/master
c: f98bf4a
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed May 11, 2011
1 parent d44cb75 commit 729d296
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 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: f25f4f522a9d2e18595da9df0bf1b6f282040e08
refs/heads/master: f98bf4aa39ecce96020631cba910be094c87ac3c
23 changes: 8 additions & 15 deletions trunk/arch/unicore32/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/list.h>
#include <linux/kallsyms.h>
#include <linux/proc_fs.h>
#include <linux/sysdev.h>
#include <linux/syscore_ops.h>
#include <linux/gpio.h>

#include <asm/system.h>
Expand Down Expand Up @@ -237,7 +237,7 @@ static struct puv3_irq_state {
unsigned int iccr;
} puv3_irq_state;

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

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

static int puv3_irq_resume(struct sys_device *dev)
static void puv3_irq_resume(void)
{
struct puv3_irq_state *st = &puv3_irq_state;

Expand All @@ -278,27 +278,20 @@ static int puv3_irq_resume(struct sys_device *dev)

writel(st->icmr, INTC_ICMR);
}
return 0;
}

static struct sysdev_class puv3_irq_sysclass = {
.name = "pkunity-irq",
static struct syscore_ops puv3_irq_syscore_ops = {
.suspend = puv3_irq_suspend,
.resume = puv3_irq_resume,
};

static struct sys_device puv3_irq_device = {
.id = 0,
.cls = &puv3_irq_sysclass,
};

static int __init puv3_irq_init_devicefs(void)
static int __init puv3_irq_init_syscore(void)
{
sysdev_class_register(&puv3_irq_sysclass);
return sysdev_register(&puv3_irq_device);
register_syscore_ops(&puv3_irq_syscore_ops);
return 0;
}

device_initcall(puv3_irq_init_devicefs);
device_initcall(puv3_irq_init_syscore);

void __init init_IRQ(void)
{
Expand Down

0 comments on commit 729d296

Please sign in to comment.