diff options
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
| -rw-r--r-- | arch/arm/mach-pxa/generic.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 5efa84749f37..45fb2c3bcf82 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
| @@ -204,13 +204,6 @@ static struct platform_device udc_device = { | |||
| 204 | } | 204 | } |
| 205 | }; | 205 | }; |
| 206 | 206 | ||
| 207 | static struct pxafb_mach_info pxa_fb_info; | ||
| 208 | |||
| 209 | void __init set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info) | ||
| 210 | { | ||
| 211 | memcpy(&pxa_fb_info,hard_pxa_fb_info,sizeof(struct pxafb_mach_info)); | ||
| 212 | } | ||
| 213 | |||
| 214 | static struct resource pxafb_resources[] = { | 207 | static struct resource pxafb_resources[] = { |
| 215 | [0] = { | 208 | [0] = { |
| 216 | .start = 0x44000000, | 209 | .start = 0x44000000, |
| @@ -230,7 +223,6 @@ static struct platform_device pxafb_device = { | |||
| 230 | .name = "pxa2xx-fb", | 223 | .name = "pxa2xx-fb", |
| 231 | .id = -1, | 224 | .id = -1, |
| 232 | .dev = { | 225 | .dev = { |
| 233 | .platform_data = &pxa_fb_info, | ||
| 234 | .dma_mask = &fb_dma_mask, | 226 | .dma_mask = &fb_dma_mask, |
| 235 | .coherent_dma_mask = 0xffffffff, | 227 | .coherent_dma_mask = 0xffffffff, |
| 236 | }, | 228 | }, |
| @@ -238,6 +230,11 @@ static struct platform_device pxafb_device = { | |||
| 238 | .resource = pxafb_resources, | 230 | .resource = pxafb_resources, |
| 239 | }; | 231 | }; |
| 240 | 232 | ||
| 233 | void __init set_pxa_fb_info(struct pxafb_mach_info *info) | ||
| 234 | { | ||
| 235 | pxafb_device.dev.platform_data = info; | ||
| 236 | } | ||
| 237 | |||
| 241 | void __init set_pxa_fb_parent(struct device *parent_dev) | 238 | void __init set_pxa_fb_parent(struct device *parent_dev) |
| 242 | { | 239 | { |
| 243 | pxafb_device.dev.parent = parent_dev; | 240 | pxafb_device.dev.parent = parent_dev; |
