Commit 556626ad authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32,leon: always include leon_pmc in build

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Konrad Eisele <konrad@gaisler.com>
parent 3732106a
...@@ -52,7 +52,7 @@ obj-y += of_device_$(BITS).o ...@@ -52,7 +52,7 @@ obj-y += of_device_$(BITS).o
obj-$(CONFIG_SPARC64) += prom_irqtrans.o obj-$(CONFIG_SPARC64) += prom_irqtrans.o
obj-$(CONFIG_SPARC32) += leon_kernel.o obj-$(CONFIG_SPARC32) += leon_kernel.o
obj-$(CONFIG_SPARC_LEON)+= leon_pmc.o obj-$(CONFIG_SPARC32) += leon_pmc.o
obj-$(CONFIG_SPARC64) += reboot.o obj-$(CONFIG_SPARC64) += reboot.o
obj-$(CONFIG_SPARC64) += sysfs.o obj-$(CONFIG_SPARC64) += sysfs.o
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/pm.h> #include <linux/pm.h>
#include <asm/leon_amba.h> #include <asm/leon_amba.h>
#include <asm/cpu_type.h>
#include <asm/leon.h> #include <asm/leon.h>
/* List of Systems that need fixup instructions around power-down instruction */ /* List of Systems that need fixup instructions around power-down instruction */
...@@ -65,13 +66,15 @@ void pmc_leon_idle(void) ...@@ -65,13 +66,15 @@ void pmc_leon_idle(void)
/* Install LEON Power Down function */ /* Install LEON Power Down function */
static int __init leon_pmc_install(void) static int __init leon_pmc_install(void)
{ {
/* Assign power management IDLE handler */ if (sparc_cpu_model == sparc_leon) {
if (pmc_leon_need_fixup()) /* Assign power management IDLE handler */
pm_idle = pmc_leon_idle_fixup; if (pmc_leon_need_fixup())
else pm_idle = pmc_leon_idle_fixup;
pm_idle = pmc_leon_idle; else
pm_idle = pmc_leon_idle;
printk(KERN_INFO "leon: power management initialized\n"); printk(KERN_INFO "leon: power management initialized\n");
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment