aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c1
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c1
-rw-r--r--drivers/video/sh_mobile_hdmi.c17
-rw-r--r--include/video/sh_mobile_hdmi.h1
4 files changed, 5 insertions, 15 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index eeb4d9664584..adab85de8476 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -856,7 +856,6 @@ static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq,
856 856
857static struct sh_mobile_hdmi_info hdmi_info = { 857static struct sh_mobile_hdmi_info hdmi_info = {
858 .lcd_chan = &sh_mobile_lcdc1_info.ch[0], 858 .lcd_chan = &sh_mobile_lcdc1_info.ch[0],
859 .lcd_dev = &lcdc1_device.dev,
860 .flags = HDMI_SND_SRC_SPDIF, 859 .flags = HDMI_SND_SRC_SPDIF,
861 .clk_optimize_parent = ap4evb_clk_optimize, 860 .clk_optimize_parent = ap4evb_clk_optimize,
862}; 861};
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index a2813247b455..1e0229390197 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -480,7 +480,6 @@ static struct platform_device hdmi_lcdc_device = {
480 480
481static struct sh_mobile_hdmi_info hdmi_info = { 481static struct sh_mobile_hdmi_info hdmi_info = {
482 .lcd_chan = &hdmi_lcdc_info.ch[0], 482 .lcd_chan = &hdmi_lcdc_info.ch[0],
483 .lcd_dev = &hdmi_lcdc_device.dev,
484 .flags = HDMI_SND_SRC_SPDIF, 483 .flags = HDMI_SND_SRC_SPDIF,
485}; 484};
486 485
diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c
index a77bbc3e9e13..ebd06515f033 100644
--- a/drivers/video/sh_mobile_hdmi.c
+++ b/drivers/video/sh_mobile_hdmi.c
@@ -1008,11 +1008,9 @@ static void sh_hdmi_display_on(void *arg, struct fb_info *info)
1008 * FB_EVENT_FB_UNBIND notify is also called with info->lock held 1008 * FB_EVENT_FB_UNBIND notify is also called with info->lock held
1009 */ 1009 */
1010 struct sh_hdmi *hdmi = arg; 1010 struct sh_hdmi *hdmi = arg;
1011 struct sh_mobile_hdmi_info *pdata = hdmi->dev->platform_data;
1012 struct sh_mobile_lcdc_chan *ch = info->par; 1011 struct sh_mobile_lcdc_chan *ch = info->par;
1013 1012
1014 dev_dbg(hdmi->dev, "%s(%p): state %x\n", __func__, 1013 dev_dbg(hdmi->dev, "%s(%p): state %x\n", __func__, hdmi, info->state);
1015 pdata->lcd_dev, info->state);
1016 1014
1017 /* No need to lock */ 1015 /* No need to lock */
1018 hdmi->info = info; 1016 hdmi->info = info;
@@ -1040,9 +1038,8 @@ static void sh_hdmi_display_on(void *arg, struct fb_info *info)
1040static void sh_hdmi_display_off(void *arg) 1038static void sh_hdmi_display_off(void *arg)
1041{ 1039{
1042 struct sh_hdmi *hdmi = arg; 1040 struct sh_hdmi *hdmi = arg;
1043 struct sh_mobile_hdmi_info *pdata = hdmi->dev->platform_data;
1044 1041
1045 dev_dbg(hdmi->dev, "%s(%p)\n", __func__, pdata->lcd_dev); 1042 dev_dbg(hdmi->dev, "%s(%p)\n", __func__, hdmi);
1046 /* PS mode e->a */ 1043 /* PS mode e->a */
1047 hdmi_write(hdmi, 0x10, HDMI_SYSTEM_CTRL); 1044 hdmi_write(hdmi, 0x10, HDMI_SYSTEM_CTRL);
1048} 1045}
@@ -1114,15 +1111,11 @@ static void sh_hdmi_edid_work_fn(struct work_struct *work)
1114{ 1111{
1115 struct sh_hdmi *hdmi = container_of(work, struct sh_hdmi, edid_work.work); 1112 struct sh_hdmi *hdmi = container_of(work, struct sh_hdmi, edid_work.work);
1116 struct fb_info *info; 1113 struct fb_info *info;
1117 struct sh_mobile_hdmi_info *pdata = hdmi->dev->platform_data;
1118 struct sh_mobile_lcdc_chan *ch; 1114 struct sh_mobile_lcdc_chan *ch;
1119 int ret; 1115 int ret;
1120 1116
1121 dev_dbg(hdmi->dev, "%s(%p): begin, hotplug status %d\n", __func__, 1117 dev_dbg(hdmi->dev, "%s(%p): begin, hotplug status %d\n", __func__, hdmi,
1122 pdata->lcd_dev, hdmi->hp_state); 1118 hdmi->hp_state);
1123
1124 if (!pdata->lcd_dev)
1125 return;
1126 1119
1127 mutex_lock(&hdmi->mutex); 1120 mutex_lock(&hdmi->mutex);
1128 1121
@@ -1198,7 +1191,7 @@ out:
1198 hdmi->hp_state = HDMI_HOTPLUG_DISCONNECTED; 1191 hdmi->hp_state = HDMI_HOTPLUG_DISCONNECTED;
1199 mutex_unlock(&hdmi->mutex); 1192 mutex_unlock(&hdmi->mutex);
1200 1193
1201 dev_dbg(hdmi->dev, "%s(%p): end\n", __func__, pdata->lcd_dev); 1194 dev_dbg(hdmi->dev, "%s(%p): end\n", __func__, hdmi);
1202} 1195}
1203 1196
1204static int sh_hdmi_notify(struct notifier_block *nb, 1197static int sh_hdmi_notify(struct notifier_block *nb,
diff --git a/include/video/sh_mobile_hdmi.h b/include/video/sh_mobile_hdmi.h
index b56932927d0a..0b8d2cf0d510 100644
--- a/include/video/sh_mobile_hdmi.h
+++ b/include/video/sh_mobile_hdmi.h
@@ -32,7 +32,6 @@ struct clk;
32 32
33struct sh_mobile_hdmi_info { 33struct sh_mobile_hdmi_info {
34 struct sh_mobile_lcdc_chan_cfg *lcd_chan; 34 struct sh_mobile_lcdc_chan_cfg *lcd_chan;
35 struct device *lcd_dev;
36 unsigned int flags; 35 unsigned int flags;
37 long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq, 36 long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq,
38 unsigned long *parent_freq); 37 unsigned long *parent_freq);