Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308435
b: refs/heads/master
c: cafa619
h: refs/heads/master
i:
  308433: f65677a
  308431: 62ab6e8
v: v3
  • Loading branch information
Shawn Guo committed May 8, 2012
1 parent 38c59c7 commit 2c19cf7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 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: bbd707acee279a61177a604822db92e8164d00db
refs/heads/master: cafa61907cb0aabbedf3c248f197130dc5332147
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-pnx4008/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,17 @@ static void pnx4008_restart(char mode, const char *cmd)
soft_restart(0);
}

#ifdef CONFIG_PM
extern int pnx4008_pm_init(void);
#else
static inline int pnx4008_pm_init(void) { return 0; }
#endif

void __init pnx4008_init_late(void)
{
pnx4008_pm_init();
}

extern struct sys_timer pnx4008_timer;

MACHINE_START(PNX4008, "Philips PNX4008")
Expand All @@ -273,6 +284,7 @@ MACHINE_START(PNX4008, "Philips PNX4008")
.map_io = pnx4008_map_io,
.init_irq = pnx4008_init_irq,
.init_machine = pnx4008_init,
.init_late = pnx4008_init_late,
.timer = &pnx4008_timer,
.restart = pnx4008_restart,
MACHINE_END
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-pnx4008/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static const struct platform_suspend_ops pnx4008_pm_ops = {
.valid = pnx4008_pm_valid,
};

static int __init pnx4008_pm_init(void)
int __init pnx4008_pm_init(void)
{
u32 sram_size_to_allocate;

Expand All @@ -151,5 +151,3 @@ static int __init pnx4008_pm_init(void)
suspend_set_ops(&pnx4008_pm_ops);
return 0;
}

late_initcall(pnx4008_pm_init);

0 comments on commit 2c19cf7

Please sign in to comment.