aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/devices.c
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-02-15 02:37:30 -0500
committerEric Miao <eric.y.miao@gmail.com>2011-03-16 04:32:47 -0400
commit4321e1a12b811c02441240aa6183156791204f3f (patch)
tree9ac73db90d1a34dfcf5df2576f32155e03e225de /arch/arm/mach-pxa/devices.c
parent54a93b69a4341a14acb67e0bb19b9bf1cc878cb2 (diff)
ARM: pxa: clean up set_pxa_fb_info
set_pxa_fb_info() has been a long-standing wart in the naming scheme of the pxa_set_xxx_info() functions. This renames the function, and combines set_pxa_fb_parent() with set_pxa_fb_info(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r--arch/arm/mach-pxa/devices.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index 4c766e3b4af3..edfe80308902 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -188,16 +188,12 @@ struct platform_device pxa_device_fb = {
188 .resource = pxafb_resources, 188 .resource = pxafb_resources,
189}; 189};
190 190
191void __init set_pxa_fb_info(struct pxafb_mach_info *info) 191void __init pxa_set_fb_info(struct device *parent, struct pxafb_mach_info *info)
192{ 192{
193 pxa_device_fb.dev.parent = parent;
193 pxa_register_device(&pxa_device_fb, info); 194 pxa_register_device(&pxa_device_fb, info);
194} 195}
195 196
196void __init set_pxa_fb_parent(struct device *parent_dev)
197{
198 pxa_device_fb.dev.parent = parent_dev;
199}
200
201static struct resource pxa_resource_ffuart[] = { 197static struct resource pxa_resource_ffuart[] = {
202 { 198 {
203 .start = 0x40100000, 199 .start = 0x40100000,