Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344623
b: refs/heads/master
c: af23cb3
h: refs/heads/master
i:
  344621: 3b2ea0a
  344619: fe8fa97
  344615: cdd4b43
  344607: 8b5cb89
v: v3
  • Loading branch information
Ricardo Neri authored and Tomi Valkeinen committed Nov 6, 2012
1 parent 5ec1a9c commit 1cc3c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 933ed63405da8f7a76676e9e10491d7f3be269d1
refs/heads/master: af23cb353307c9d69a5d41ce6168c83fe032387d
9 changes: 4 additions & 5 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,22 +1050,21 @@ static void __exit hdmi_uninit_output(struct platform_device *pdev)
/* HDMI HW IP initialisation */
static int __init omapdss_hdmihw_probe(struct platform_device *pdev)
{
struct resource *hdmi_mem;
struct resource *res;
int r;

hdmi.pdev = pdev;

mutex_init(&hdmi.lock);

hdmi_mem = platform_get_resource(hdmi.pdev, IORESOURCE_MEM, 0);
if (!hdmi_mem) {
res = platform_get_resource(hdmi.pdev, IORESOURCE_MEM, 0);
if (!res) {
DSSERR("can't get IORESOURCE_MEM HDMI\n");
return -EINVAL;
}

/* Base address taken from platform */
hdmi.ip_data.base_wp = ioremap(hdmi_mem->start,
resource_size(hdmi_mem));
hdmi.ip_data.base_wp = ioremap(res->start, resource_size(res));
if (!hdmi.ip_data.base_wp) {
DSSERR("can't ioremap WP\n");
return -ENOMEM;
Expand Down

0 comments on commit 1cc3c99

Please sign in to comment.