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 :)
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.
* 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>
#include <linux/interrupt.h>
#include <linux/sysctl.h>
#include <linux/errno.h>
+#include <linux/cpufreq.h>
#include <asm/hardware.h>
#include <asm/memory.h>
__initcall(pm_init);
#endif
+
+EXPORT_SYMBOL(pm_do_suspend);