diff options
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi4_core.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi5_core.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi_phy.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi_pll.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi_wp.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4_core.c b/drivers/video/fbdev/omap2/dss/hdmi4_core.c index 2678d6f06216..8bde7b7e95ff 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi4_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi4_core.c | |||
@@ -1009,9 +1009,9 @@ int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core) | |||
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | core->base = devm_ioremap_resource(&pdev->dev, res); | 1011 | core->base = devm_ioremap_resource(&pdev->dev, res); |
1012 | if (!core->base) { | 1012 | if (IS_ERR(core->base)) { |
1013 | DSSERR("can't ioremap CORE\n"); | 1013 | DSSERR("can't ioremap CORE\n"); |
1014 | return -ENOMEM; | 1014 | return PTR_ERR(core->base); |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | return 0; | 1017 | return 0; |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/dss/hdmi5_core.c index e390dd38a2fa..7528c7a42aa5 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi5_core.c | |||
@@ -913,9 +913,9 @@ int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core) | |||
913 | } | 913 | } |
914 | 914 | ||
915 | core->base = devm_ioremap_resource(&pdev->dev, res); | 915 | core->base = devm_ioremap_resource(&pdev->dev, res); |
916 | if (!core->base) { | 916 | if (IS_ERR(core->base)) { |
917 | DSSERR("can't ioremap HDMI core\n"); | 917 | DSSERR("can't ioremap HDMI core\n"); |
918 | return -ENOMEM; | 918 | return PTR_ERR(core->base); |
919 | } | 919 | } |
920 | 920 | ||
921 | return 0; | 921 | return 0; |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_phy.c b/drivers/video/fbdev/omap2/dss/hdmi_phy.c index 3970574c25a6..e007ac892d79 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi_phy.c +++ b/drivers/video/fbdev/omap2/dss/hdmi_phy.c | |||
@@ -246,9 +246,9 @@ int hdmi_phy_init(struct platform_device *pdev, struct hdmi_phy_data *phy) | |||
246 | } | 246 | } |
247 | 247 | ||
248 | phy->base = devm_ioremap_resource(&pdev->dev, res); | 248 | phy->base = devm_ioremap_resource(&pdev->dev, res); |
249 | if (!phy->base) { | 249 | if (IS_ERR(phy->base)) { |
250 | DSSERR("can't ioremap TX PHY\n"); | 250 | DSSERR("can't ioremap TX PHY\n"); |
251 | return -ENOMEM; | 251 | return PTR_ERR(phy->base); |
252 | } | 252 | } |
253 | 253 | ||
254 | return 0; | 254 | return 0; |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_pll.c b/drivers/video/fbdev/omap2/dss/hdmi_pll.c index 6b78d4fb6f59..54df12a8d744 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi_pll.c +++ b/drivers/video/fbdev/omap2/dss/hdmi_pll.c | |||
@@ -282,9 +282,9 @@ int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll) | |||
282 | } | 282 | } |
283 | 283 | ||
284 | pll->base = devm_ioremap_resource(&pdev->dev, res); | 284 | pll->base = devm_ioremap_resource(&pdev->dev, res); |
285 | if (!pll->base) { | 285 | if (IS_ERR(pll->base)) { |
286 | DSSERR("can't ioremap PLLCTRL\n"); | 286 | DSSERR("can't ioremap PLLCTRL\n"); |
287 | return -ENOMEM; | 287 | return PTR_ERR(pll->base); |
288 | } | 288 | } |
289 | 289 | ||
290 | return 0; | 290 | return 0; |
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) | |||
249 | } | 249 | } |
250 | 250 | ||
251 | wp->base = devm_ioremap_resource(&pdev->dev, res); | 251 | wp->base = devm_ioremap_resource(&pdev->dev, res); |
252 | if (!wp->base) { | 252 | if (IS_ERR(wp->base)) { |
253 | DSSERR("can't ioremap HDMI WP\n"); | 253 | DSSERR("can't ioremap HDMI WP\n"); |
254 | return -ENOMEM; | 254 | return PTR_ERR(wp->base); |
255 | } | 255 | } |
256 | 256 | ||
257 | return 0; | 257 | return 0; |