Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230501
b: refs/heads/master
c: 0d7fa18
h: refs/heads/master
i:
  230499: b477ed0
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed Jan 11, 2011
1 parent d497048 commit 6c3c345
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: eb0778bd3c1d4d29ffb7e13739463855d92965df
refs/heads/master: 0d7fa180a8f314eaa4f766a852bf73abce4dbcc2
18 changes: 9 additions & 9 deletions trunk/drivers/video/sh_mobile_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,9 @@ static int sh_hdmi_read_edid(struct sh_hdmi *hdmi, unsigned long *hdmi_rate,
* driver, and passing ->info with HDMI platform data.
*/
if (info && !found) {
modelist = hdmi->info->modelist.next &&
!list_empty(&hdmi->info->modelist) ?
list_entry(hdmi->info->modelist.next,
modelist = info->modelist.next &&
!list_empty(&info->modelist) ?
list_entry(info->modelist.next,
struct fb_modelist, list) :
NULL;

Expand Down Expand Up @@ -1123,6 +1123,7 @@ static void sh_hdmi_edid_work_fn(struct work_struct *work)
mutex_lock(&hdmi->mutex);

if (hdmi->hp_state == HDMI_HOTPLUG_CONNECTED) {
struct fb_info *info = hdmi->info;
unsigned long parent_rate = 0, hdmi_rate;

/* A device has been plugged in */
Expand All @@ -1144,30 +1145,29 @@ static void sh_hdmi_edid_work_fn(struct work_struct *work)
/* Switched to another (d) power-save mode */
msleep(10);

if (!hdmi->info)
if (!info)
goto out;

ch = hdmi->info->par;
ch = info->par;

acquire_console_sem();

/* HDMI plug in */
if (!sh_hdmi_must_reconfigure(hdmi) &&
hdmi->info->state == FBINFO_STATE_RUNNING) {
info->state == FBINFO_STATE_RUNNING) {
/*
* First activation with the default monitor - just turn
* on, if we run a resume here, the logo disappears
*/
if (lock_fb_info(hdmi->info)) {
struct fb_info *info = hdmi->info;
if (lock_fb_info(info)) {
info->var.width = hdmi->var.width;
info->var.height = hdmi->var.height;
sh_hdmi_display_on(hdmi, info);
unlock_fb_info(info);
}
} else {
/* New monitor or have to wake up */
fb_set_suspend(hdmi->info, 0);
fb_set_suspend(info, 0);
}

release_console_sem();
Expand Down

0 comments on commit 6c3c345

Please sign in to comment.