mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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: 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
6cb096562e
commit
bda63d5c70
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue