summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/devices
diff options
context:
space:
mode:
authorRussell Robinson Jr <rrobinson@phytec.com>2013-07-16 16:08:06 -0700
committerAnthony Felice <tony.felice@timesys.com>2013-08-28 18:26:22 -0400
commit13ad0383ab52509b9a487f0f30bc01b54f930064 (patch)
tree2682210494847ea13565df78586a4717c669b2e0 /arch/arm/plat-mxc/devices
parentaccdcb548f0d9779e77e18a62cb57be0e0133240 (diff)
mvf: dcu: move DCU_LCD_ENABLE_PIN into the platform_data struct
Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'arch/arm/plat-mxc/devices')
-rw-r--r--arch/arm/plat-mxc/devices/platform-mvf-dcu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-mvf-dcu.c b/arch/arm/plat-mxc/devices/platform-mvf-dcu.c
index 15f6f0dbe24e..df77714afec4 100644
--- a/arch/arm/plat-mxc/devices/platform-mvf-dcu.c
+++ b/arch/arm/plat-mxc/devices/platform-mvf-dcu.c
@@ -22,16 +22,17 @@
.init = dcu_init, \
}
-int __init mvf_dcu_init(int id)
+int __init mvf_dcu_init(int id,
+ struct mvf_dcu_platform_data *pdata)
{
int ret = 0;
- ret = gpio_request_one(DCU_LCD_ENABLE_PIN, GPIOF_OUT_INIT_LOW, "DCU");
+ ret = gpio_request_one(pdata->enable_pin, GPIOF_OUT_INIT_LOW, "DCU");
if (ret)
printk(KERN_ERR "DCU: failed to request GPIO 25\n");
msleep(2);
- gpio_set_value(DCU_LCD_ENABLE_PIN, 0);
+ gpio_set_value(pdata->enable_pin, 0);
writel(0x20000000, MVF_IO_ADDRESS(MVF_TCON0_BASE_ADDR));
return ret;