aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/board-devkit8000.c2
-rw-r--r--arch/arm/mach-omap2/board-omap3pandora.c2
-rw-r--r--arch/arm/mach-omap2/display.c6
-rw-r--r--arch/arm/mach-omap2/twl-common.c2
-rw-r--r--drivers/video/omap2/dss/dsi.c25
5 files changed, 16 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c
index b6002ec31c6a..d3941e6a40a2 100644
--- a/arch/arm/mach-omap2/board-devkit8000.c
+++ b/arch/arm/mach-omap2/board-devkit8000.c
@@ -267,7 +267,7 @@ static struct twl4030_gpio_platform_data devkit8000_gpio_data = {
267 267
268static struct regulator_consumer_supply devkit8000_vpll1_supplies[] = { 268static struct regulator_consumer_supply devkit8000_vpll1_supplies[] = {
269 REGULATOR_SUPPLY("vdds_dsi", "omapdss"), 269 REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
270 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), 270 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi.0"),
271}; 271};
272 272
273/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ 273/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c
index 080d7bd6795e..3f100011adfa 100644
--- a/arch/arm/mach-omap2/board-omap3pandora.c
+++ b/arch/arm/mach-omap2/board-omap3pandora.c
@@ -335,7 +335,7 @@ static struct regulator_consumer_supply pandora_vmmc3_supply[] = {
335static struct regulator_consumer_supply pandora_vdds_supplies[] = { 335static struct regulator_consumer_supply pandora_vdds_supplies[] = {
336 REGULATOR_SUPPLY("vdds_sdi", "omapdss"), 336 REGULATOR_SUPPLY("vdds_sdi", "omapdss"),
337 REGULATOR_SUPPLY("vdds_dsi", "omapdss"), 337 REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
338 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), 338 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi.0"),
339}; 339};
340 340
341static struct regulator_consumer_supply pandora_vcc_lcd_supply[] = { 341static struct regulator_consumer_supply pandora_vcc_lcd_supply[] = {
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index a5b7a236aa5b..c42df111c9d2 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -61,7 +61,7 @@ static const struct omap_dss_hwmod_data omap3_dss_hwmod_data[] __initdata = {
61 { "dss_dispc", "omapdss_dispc", -1 }, 61 { "dss_dispc", "omapdss_dispc", -1 },
62 { "dss_rfbi", "omapdss_rfbi", -1 }, 62 { "dss_rfbi", "omapdss_rfbi", -1 },
63 { "dss_venc", "omapdss_venc", -1 }, 63 { "dss_venc", "omapdss_venc", -1 },
64 { "dss_dsi1", "omapdss_dsi1", -1 }, 64 { "dss_dsi1", "omapdss_dsi", 0 },
65}; 65};
66 66
67static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initdata = { 67static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initdata = {
@@ -69,8 +69,8 @@ static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initdata = {
69 { "dss_dispc", "omapdss_dispc", -1 }, 69 { "dss_dispc", "omapdss_dispc", -1 },
70 { "dss_rfbi", "omapdss_rfbi", -1 }, 70 { "dss_rfbi", "omapdss_rfbi", -1 },
71 { "dss_venc", "omapdss_venc", -1 }, 71 { "dss_venc", "omapdss_venc", -1 },
72 { "dss_dsi1", "omapdss_dsi1", -1 }, 72 { "dss_dsi1", "omapdss_dsi", 0 },
73 { "dss_dsi2", "omapdss_dsi2", -1 }, 73 { "dss_dsi2", "omapdss_dsi", 1 },
74 { "dss_hdmi", "omapdss_hdmi", -1 }, 74 { "dss_hdmi", "omapdss_hdmi", -1 },
75}; 75};
76 76
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c
index daa056ed8738..4f6d2164e8cf 100644
--- a/arch/arm/mach-omap2/twl-common.c
+++ b/arch/arm/mach-omap2/twl-common.c
@@ -99,7 +99,7 @@ static struct regulator_init_data omap3_vdac_idata = {
99 99
100static struct regulator_consumer_supply omap3_vpll2_supplies[] = { 100static struct regulator_consumer_supply omap3_vpll2_supplies[] = {
101 REGULATOR_SUPPLY("vdds_dsi", "omapdss"), 101 REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
102 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), 102 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi.0"),
103}; 103};
104 104
105static struct regulator_init_data omap3_vpll2_idata = { 105static struct regulator_init_data omap3_vpll2_idata = {
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index d167a5473c69..713e1d9ac0ec 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -368,14 +368,9 @@ struct platform_device *dsi_get_dsidev_from_id(int module)
368 return dsi_pdev_map[module]; 368 return dsi_pdev_map[module];
369} 369}
370 370
371static int dsi_get_dsidev_id(struct platform_device *dsidev) 371static inline int dsi_get_dsidev_id(struct platform_device *dsidev)
372{ 372{
373 /* TEMP: Pass 0 as the dsi module index till the time the dsi platform 373 return dsidev->id;
374 * device names aren't changed to the form "omapdss_dsi.0",
375 * "omapdss_dsi.1" and so on */
376 BUG_ON(dsidev->id != -1);
377
378 return 0;
379} 374}
380 375
381static inline void dsi_write_reg(struct platform_device *dsidev, 376static inline void dsi_write_reg(struct platform_device *dsidev,
@@ -4465,7 +4460,7 @@ static void dsi_put_clocks(struct platform_device *dsidev)
4465} 4460}
4466 4461
4467/* DSI1 HW IP initialisation */ 4462/* DSI1 HW IP initialisation */
4468static int omap_dsi1hw_probe(struct platform_device *dsidev) 4463static int omap_dsihw_probe(struct platform_device *dsidev)
4469{ 4464{
4470 struct omap_display_platform_data *dss_plat_data; 4465 struct omap_display_platform_data *dss_plat_data;
4471 struct omap_dss_board_info *board_info; 4466 struct omap_dss_board_info *board_info;
@@ -4575,7 +4570,7 @@ err_alloc:
4575 return r; 4570 return r;
4576} 4571}
4577 4572
4578static int omap_dsi1hw_remove(struct platform_device *dsidev) 4573static int omap_dsihw_remove(struct platform_device *dsidev)
4579{ 4574{
4580 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 4575 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
4581 4576
@@ -4636,11 +4631,11 @@ static const struct dev_pm_ops dsi_pm_ops = {
4636 .runtime_resume = dsi_runtime_resume, 4631 .runtime_resume = dsi_runtime_resume,
4637}; 4632};
4638 4633
4639static struct platform_driver omap_dsi1hw_driver = { 4634static struct platform_driver omap_dsihw_driver = {
4640 .probe = omap_dsi1hw_probe, 4635 .probe = omap_dsihw_probe,
4641 .remove = omap_dsi1hw_remove, 4636 .remove = omap_dsihw_remove,
4642 .driver = { 4637 .driver = {
4643 .name = "omapdss_dsi1", 4638 .name = "omapdss_dsi",
4644 .owner = THIS_MODULE, 4639 .owner = THIS_MODULE,
4645 .pm = &dsi_pm_ops, 4640 .pm = &dsi_pm_ops,
4646 }, 4641 },
@@ -4648,10 +4643,10 @@ static struct platform_driver omap_dsi1hw_driver = {
4648 4643
4649int dsi_init_platform_driver(void) 4644int dsi_init_platform_driver(void)
4650{ 4645{
4651 return platform_driver_register(&omap_dsi1hw_driver); 4646 return platform_driver_register(&omap_dsihw_driver);
4652} 4647}
4653 4648
4654void dsi_uninit_platform_driver(void) 4649void dsi_uninit_platform_driver(void)
4655{ 4650{
4656 return platform_driver_unregister(&omap_dsi1hw_driver); 4651 return platform_driver_unregister(&omap_dsihw_driver);
4657} 4652}