video: atmel_lcdfb: fix platform data struct
Today we mix pdata and drivers data in the struct atmel_lcdfb_info Fix it and introduce a new struct atmel_lcdfb_pdata for platform data only Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
090fd59308
commit
8af2c2869f
@@ -832,7 +832,7 @@ void __init at91_add_device_can(struct at91_can_data *data) {}
|
||||
|
||||
#if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE)
|
||||
static u64 lcdc_dmamask = DMA_BIT_MASK(32);
|
||||
static struct atmel_lcdfb_info lcdc_data;
|
||||
static struct atmel_lcdfb_pdata lcdc_data;
|
||||
|
||||
static struct resource lcdc_resources[] = {
|
||||
[0] = {
|
||||
@@ -859,7 +859,7 @@ static struct platform_device at91_lcdc_device = {
|
||||
.num_resources = ARRAY_SIZE(lcdc_resources),
|
||||
};
|
||||
|
||||
void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data)
|
||||
void __init at91_add_device_lcdc(struct atmel_lcdfb_pdata *data)
|
||||
{
|
||||
if (!data)
|
||||
return;
|
||||
@@ -891,7 +891,7 @@ void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data)
|
||||
platform_device_register(&at91_lcdc_device);
|
||||
}
|
||||
#else
|
||||
void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data) {}
|
||||
void __init at91_add_device_lcdc(struct atmel_lcdfb_pdata *data) {}
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user