--- linux/arch/arm/mach-pxa/Makefile.old	2004-09-24 20:49:09.000000000 +0930
+++ linux/arch/arm/mach-pxa/Makefile	2004-09-24 20:49:11.000000000 +0930
@@ -94,6 +94,23 @@
   endif
 endif
 
+ifeq ($(CONFIG_DEVICEINFO),m)
+  obj-$(CONFIG_DEVICEINFO) += devinfo.o
+  ifeq ($(CONFIG_SABINAL_DISCOVERY),y)
+    devinfo-objs-m += deviceinfo.o
+    devinfo-objs-$(CONFIG_DISCOVERY_DEVICEINFO) += discovery_deviceinfo.o
+  endif
+  ifeq ($(CONFIG_ARCH_PXA_POODLE),y)
+    devinfo-objs-m += sharpsl_deviceinfo.o
+  endif
+  ifeq ($(CONFIG_ARCH_PXA_CORGI),y)
+    devinfo-objs-m += sharpsl_deviceinfo.o
+  endif
+  ifeq ($(CONFIG_ARCH_PXA_TOSA),y)
+    devinfo-objs-m += sharpsl_deviceinfo.o
+  endif
+endif
+
 obj-m += registers.o
 
 include $(TOPDIR)/Rules.make