Commit 27e0b90b authored by Tomas Kasparek's avatar Tomas Kasparek Committed by Russell King

[PATCH] 1036/1: allow APM to be build as module (for 2.5.5) (modified)

This is updated version of patch 1002/1 . As build system in 2.5.5 kernel allows same name of .c files in different directories when computing dependencies and versioning information, the patch becomes simple. Now it just modify appropriate Makefile (in arch/arm/mach-sa1100) and exports one symbol in arch/arm/mach-sa10/pm.c)

This patch replace 1002/1.

(Hope, this is what you want Russel :)
parent 8e02a7d2
......@@ -17,7 +17,7 @@ obj- :=
led-y := leds.o
export-objs := dma.o generic.o irq.o pcipool.o sa1111.o sa1111-pcibuf.o \
usb_ctl.o usb_recv.o usb_send.o
usb_ctl.o usb_recv.o usb_send.o pm.o
# This needs to be cleaned up. We probably need to have SA1100
# and SA1110 config symbols.
......
......@@ -20,6 +20,7 @@
* in the platform specific files.
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/slab.h>
......@@ -27,6 +28,7 @@
#include <linux/interrupt.h>
#include <linux/sysctl.h>
#include <linux/errno.h>
#include <linux/cpufreq.h>
#include <asm/hardware.h>
#include <asm/memory.h>
......@@ -210,3 +212,5 @@ static int __init pm_init(void)
__initcall(pm_init);
#endif
EXPORT_SYMBOL(pm_do_suspend);
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