mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 12:24:34 +08:00
omapfb: fix return value check in dsi_bind()
Fix the retrn value check which testing the wrong variable
in dsi_bind().
Fixes: f76ee892a9
("omapfb: copy omapdss & displays for omapfb")
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>
This commit is contained in:
parent
831a8c479f
commit
43da7575cd
@ -5340,7 +5340,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;
|
||||||
}
|
}
|
||||||
@ -5360,7 +5360,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user