Commit af23cb35 authored by Ricardo Neri's avatar Ricardo Neri Committed by Tomi Valkeinen

OMAPDSS: HDMI: Rename resource variable at probe.

Minor cleanup to give to the resource variable a more proper name.
Signed-off-by: default avatarRicardo Neri <ricardo.neri@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 933ed634
...@@ -1050,22 +1050,21 @@ static void __exit hdmi_uninit_output(struct platform_device *pdev) ...@@ -1050,22 +1050,21 @@ static void __exit hdmi_uninit_output(struct platform_device *pdev)
/* HDMI HW IP initialisation */ /* HDMI HW IP initialisation */
static int __init omapdss_hdmihw_probe(struct platform_device *pdev) static int __init omapdss_hdmihw_probe(struct platform_device *pdev)
{ {
struct resource *hdmi_mem; struct resource *res;
int r; int r;
hdmi.pdev = pdev; hdmi.pdev = pdev;
mutex_init(&hdmi.lock); mutex_init(&hdmi.lock);
hdmi_mem = platform_get_resource(hdmi.pdev, IORESOURCE_MEM, 0); res = platform_get_resource(hdmi.pdev, IORESOURCE_MEM, 0);
if (!hdmi_mem) { if (!res) {
DSSERR("can't get IORESOURCE_MEM HDMI\n"); DSSERR("can't get IORESOURCE_MEM HDMI\n");
return -EINVAL; return -EINVAL;
} }
/* Base address taken from platform */ /* Base address taken from platform */
hdmi.ip_data.base_wp = ioremap(hdmi_mem->start, hdmi.ip_data.base_wp = ioremap(res->start, resource_size(res));
resource_size(hdmi_mem));
if (!hdmi.ip_data.base_wp) { if (!hdmi.ip_data.base_wp) {
DSSERR("can't ioremap WP\n"); DSSERR("can't ioremap WP\n");
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment