Index: linux-2.6.13/arch/arm/mach-pxa/generic.c
===================================================================
--- linux-2.6.13.orig/arch/arm/mach-pxa/generic.c	2005-10-14 14:57:47.000000000 +0100
+++ linux-2.6.13/arch/arm/mach-pxa/generic.c	2005-10-14 14:58:49.000000000 +0100
@@ -208,6 +208,11 @@
 	.resource	= pxafb_resources,
 };
 
+void __init set_pxa_fb_parent(struct device *parent_dev)
+{
+	pxafb_device.dev.parent = parent_dev;
+}
+
 static struct platform_device ffuart_device = {
 	.name		= "pxa2xx-uart",
 	.id		= 0,
Index: linux-2.6.13/arch/arm/mach-pxa/spitz.c
===================================================================
--- linux-2.6.13.orig/arch/arm/mach-pxa/spitz.c	2005-10-14 14:57:47.000000000 +0100
+++ linux-2.6.13/arch/arm/mach-pxa/spitz.c	2005-10-14 15:01:20.000000000 +0100
@@ -328,7 +328,7 @@
 
 	platform_add_devices(devices, ARRAY_SIZE(devices));
 	pxa_set_mci_info(&spitz_mci_platform_data);
-	pxafb_device.dev.parent = &spitzssp_device.dev;
+	set_pxa_fb_parent(&spitzssp_device.dev);
 	set_pxa_fb_info(&spitz_pxafb_info);
 }
 
Index: linux-2.6.13/include/asm-arm/arch-pxa/pxafb.h
===================================================================
--- linux-2.6.13.orig/include/asm-arm/arch-pxa/pxafb.h	2005-10-14 14:57:59.000000000 +0100
+++ linux-2.6.13/include/asm-arm/arch-pxa/pxafb.h	2005-10-14 14:58:49.000000000 +0100
@@ -66,4 +66,5 @@
 
 };
 void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info);
+void set_pxa_fb_parent(struct device *parent_dev);
 unsigned long pxafb_get_hsync_time(struct device *dev);

