Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113071
b: refs/heads/master
c: c510b9b
h: refs/heads/master
i:
  113069: f1635fb
  113067: 68cba9b
  113063: a328126
  113055: 95dad33
v: v3
  • Loading branch information
David S. Miller committed Aug 30, 2008
1 parent 4154ba5 commit 66ed30b
Show file tree
Hide file tree
Showing 3 changed files with 6 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: e0ac612e6997429a21887475709ca6d6224971f2
refs/heads/master: c510b9bfa1c34c1452f7a4389ff6de4f72a78193
4 changes: 0 additions & 4 deletions trunk/arch/sparc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ static void __init pci_scan_each_controller_bus(void)
pbm->scan_bus(pbm);
}

extern void power_init(void);

static int __init pcibios_init(void)
{
pci_controller_probe();
Expand All @@ -809,8 +807,6 @@ static int __init pcibios_init(void)

pci_scan_each_controller_bus();

power_init();

return 0;
}

Expand Down
16 changes: 5 additions & 11 deletions trunk/arch/sparc64/kernel/power.c
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
/* power.c: Power management driver.
*
* Copyright (C) 1999, 2007 David S. Miller (davem@davemloft.net)
* Copyright (C) 1999, 2007, 2008 David S. Miller (davem@davemloft.net)
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/pm.h>
#include <linux/syscalls.h>
#include <linux/reboot.h>
#include <linux/of_device.h>

#include <asm/system.h>
#include <asm/auxio.h>
#include <asm/prom.h>
#include <asm/io.h>
#include <asm/sstate.h>
#include <asm/reboot.h>

#include <linux/unistd.h>

/*
* sysctl - toggle power-off restriction for serial console
* systems in machine_power_off()
Expand Down Expand Up @@ -111,8 +104,9 @@ static struct of_platform_driver power_driver = {
},
};

void __init power_init(void)
static int __init power_init(void)
{
of_register_driver(&power_driver, &of_platform_bus_type);
return;
return of_register_driver(&power_driver, &of_platform_bus_type);
}

device_initcall(power_init);

0 comments on commit 66ed30b

Please sign in to comment.