Commit bda63d5c authored by Wei Yongjun's avatar Wei Yongjun Committed by Tomi Valkeinen

drm/omap: fix return value check in dsi_bind()

Fix the retrn value check which testing the wrong variable
in dsi_bind().
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 6cb09656
...@@ -5342,7 +5342,7 @@ static int dsi_bind(struct device *dev, struct device *master, void *data) ...@@ -5342,7 +5342,7 @@ static int dsi_bind(struct device *dev, struct device *master, void *data)
dsi->phy_base = devm_ioremap(&dsidev->dev, res->start, dsi->phy_base = devm_ioremap(&dsidev->dev, res->start,
resource_size(res)); resource_size(res));
if (!dsi->proto_base) { if (!dsi->phy_base) {
DSSERR("can't ioremap DSI PHY\n"); DSSERR("can't ioremap DSI PHY\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -5362,7 +5362,7 @@ static int dsi_bind(struct device *dev, struct device *master, void *data) ...@@ -5362,7 +5362,7 @@ static int dsi_bind(struct device *dev, struct device *master, void *data)
dsi->pll_base = devm_ioremap(&dsidev->dev, res->start, dsi->pll_base = devm_ioremap(&dsidev->dev, res->start,
resource_size(res)); resource_size(res));
if (!dsi->proto_base) { if (!dsi->pll_base) {
DSSERR("can't ioremap DSI PLL\n"); DSSERR("can't ioremap DSI PLL\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