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
@@ -465,7 +465,7 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices)
|
||||
|
||||
#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] = {
|
||||
@@ -498,7 +498,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;
|
||||
@@ -559,7 +559,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