Skip to content

Commit

Permalink
drm/omap: fix return value check in dsi_bind()
Browse files Browse the repository at this point in the history
Fix the retrn value check which testing the wrong variable
in dsi_bind().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Wei Yongjun authored and Tomi Valkeinen committed Nov 2, 2016
1 parent 6cb0965 commit bda63d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/omapdrm/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
resource_size(res));
if (!dsi->proto_base) {
if (!dsi->phy_base) {
DSSERR("can't ioremap DSI PHY\n");
return -ENOMEM;
}
Expand All @@ -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,
resource_size(res));
if (!dsi->proto_base) {
if (!dsi->pll_base) {
DSSERR("can't ioremap DSI PLL\n");
return -ENOMEM;
}
Expand Down

0 comments on commit bda63d5

Please sign in to comment.