From: Tomas Kasparek Date: Sat, 9 Mar 2002 23:20:38 +0000 (+0000) Subject: [PATCH] 1036/1: allow APM to be build as module (for 2.5.5) (modified) X-Git-Tag: v2.5.7-pre1~27^2~9 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=27e0b90be1331cd2cf5e01930b58ffd4d262bc30;p=history.git [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 :) --- diff --git a/arch/arm/mach-sa1100/Makefile b/arch/arm/mach-sa1100/Makefile index 0d5bd07792f1..66e786486cca 100644 --- a/arch/arm/mach-sa1100/Makefile +++ b/arch/arm/mach-sa1100/Makefile @@ -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. diff --git a/arch/arm/mach-sa1100/pm.c b/arch/arm/mach-sa1100/pm.c index 649e73f3ab1c..3c6a969f37b1 100644 --- a/arch/arm/mach-sa1100/pm.c +++ b/arch/arm/mach-sa1100/pm.c @@ -20,6 +20,7 @@ * in the platform specific files. */ #include +#include #include #include #include @@ -27,6 +28,7 @@ #include #include #include +#include #include #include @@ -210,3 +212,5 @@ static int __init pm_init(void) __initcall(pm_init); #endif + +EXPORT_SYMBOL(pm_do_suspend);