Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303069
b: refs/heads/master
c: 3acc797
h: refs/heads/master
i:
  303067: 71952f5
v: v3
  • Loading branch information
Tomi Valkeinen committed May 9, 2012
1 parent 08d4b18 commit 4933912
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dac8eb5f1d29eb4cf44305239da7e7a477e48a90
refs/heads/master: 3acc797c1db2eb873b13a07f21fe9572af4b78ee
16 changes: 0 additions & 16 deletions trunk/arch/arm/mach-omap2/board-4430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,21 +758,6 @@ static struct omap_dss_device sdp4430_lcd2_device = {
.channel = OMAP_DSS_CHANNEL_LCD2,
};

static void sdp4430_lcd_init(void)
{
int r;

r = gpio_request_one(dsi1_panel.reset_gpio, GPIOF_DIR_OUT,
"lcd1_reset_gpio");
if (r)
pr_err("%s: Could not get lcd1_reset_gpio\n", __func__);

r = gpio_request_one(dsi2_panel.reset_gpio, GPIOF_DIR_OUT,
"lcd2_reset_gpio");
if (r)
pr_err("%s: Could not get lcd2_reset_gpio\n", __func__);
}

static struct omap_dss_hdmi_data sdp4430_hdmi_data = {
.hpd_gpio = HDMI_GPIO_HPD,
};
Expand Down Expand Up @@ -858,7 +843,6 @@ static void __init omap_4430sdp_display_init(void)
if (r)
pr_err("%s: Could not get display_sel GPIO\n", __func__);

sdp4430_lcd_init();
sdp4430_picodlp_init();
omap_display_init(&sdp4430_dss_data);
/*
Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-taal.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,15 @@ static int taal_probe(struct omap_dss_device *dssdev)

dev_set_drvdata(&dssdev->dev, td);

if (gpio_is_valid(panel_data->reset_gpio)) {
r = gpio_request_one(panel_data->reset_gpio, GPIOF_OUT_INIT_LOW,
"taal rst");
if (r) {
dev_err(&dssdev->dev, "failed to request reset gpio\n");
goto err_rst_gpio;
}
}

taal_hw_reset(dssdev);

if (panel_data->use_dsi_backlight) {
Expand Down Expand Up @@ -1073,6 +1082,9 @@ static int taal_probe(struct omap_dss_device *dssdev)
if (bldev != NULL)
backlight_device_unregister(bldev);
err_bl:
if (gpio_is_valid(panel_data->reset_gpio))
gpio_free(panel_data->reset_gpio);
err_rst_gpio:
destroy_workqueue(td->workqueue);
err_wq:
free_regulators(panel_config->regulators, panel_config->num_regulators);
Expand Down Expand Up @@ -1116,6 +1128,9 @@ static void __exit taal_remove(struct omap_dss_device *dssdev)
free_regulators(td->panel_config->regulators,
td->panel_config->num_regulators);

if (gpio_is_valid(panel_data->reset_gpio))
gpio_free(panel_data->reset_gpio);

kfree(td);
}

Expand Down

0 comments on commit 4933912

Please sign in to comment.