Commit 4cba398f authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Santosh Shilimkar

drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe

Fix to return the error code from of_get_child_by_name() instaed of 0
in knav_queue_probe().

Fixes: 41f93af9 ("soc: ti: add Keystone Navigator QMSS driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent b4fa7335
...@@ -1852,9 +1852,10 @@ static int knav_queue_probe(struct platform_device *pdev) ...@@ -1852,9 +1852,10 @@ static int knav_queue_probe(struct platform_device *pdev)
if (ret) if (ret)
goto err; goto err;
regions = of_get_child_by_name(node, "descriptor-regions"); regions = of_get_child_by_name(node, "descriptor-regions");
if (!regions) { if (!regions) {
dev_err(dev, "descriptor-regions not specified\n"); dev_err(dev, "descriptor-regions not specified\n");
ret = -ENODEV;
goto err; goto err;
} }
ret = knav_queue_setup_regions(kdev, regions); ret = knav_queue_setup_regions(kdev, regions);
......
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