PM / PowerPC: Use struct syscore_ops instead of sysdevs for PM
Make some PowerPC architecture's code use struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely in the future. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#include <linux/irq.h>
|
||||
#include <linux/sysdev.h>
|
||||
#include <asm/dcr.h>
|
||||
#include <asm/msi_bitmap.h>
|
||||
|
||||
@@ -320,8 +319,6 @@ struct mpic
|
||||
/* link */
|
||||
struct mpic *next;
|
||||
|
||||
struct sys_device sysdev;
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
struct mpic_irq_save *save_data;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user