aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2/dss/hdmi_wp.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-05-23 14:50:09 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-05-23 14:50:09 +0300
commit2b22df835ba42ad6c5f09a52baf68cfb60650f56 (patch)
tree5ac4cb9dd5047da49e2dba10c9e07bc1b6fde11b /drivers/video/fbdev/omap2/dss/hdmi_wp.c
parentOMAPDSS: HDMI: remove unused defines (diff)
downloadlinux-dev-2b22df835ba42ad6c5f09a52baf68cfb60650f56.tar.xz
linux-dev-2b22df835ba42ad6c5f09a52baf68cfb60650f56.zip
OMAPDSS: HDMI: fix devm_ioremap_resource error checks
devm_ioremap_resource returns ERR_PTR on error, not NULL. Fix the error checks in the driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/omap2/dss/hdmi_wp.c')
-rw-r--r--drivers/video/fbdev/omap2/dss/hdmi_wp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_wp.c b/drivers/video/fbdev/omap2/dss/hdmi_wp.c
index 706ea90c376f..496327e2b21b 100644
--- a/drivers/video/fbdev/omap2/dss/hdmi_wp.c
+++ b/drivers/video/fbdev/omap2/dss/hdmi_wp.c
@@ -249,9 +249,9 @@ int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp)
}
wp->base = devm_ioremap_resource(&pdev->dev, res);
- if (!wp->base) {
+ if (IS_ERR(wp->base)) {
DSSERR("can't ioremap HDMI WP\n");
- return -ENOMEM;
+ return PTR_ERR(wp->base);
}
return 0;