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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1855,6 +1855,7 @@ static int knav_queue_probe(struct platform_device *pdev)
	regions = of_get_child_by_name(node, "descriptor-regions");
	if (!regions) {
		dev_err(dev, "descriptor-regions not specified\n");
		ret = -ENODEV;
		goto err;
	}
	ret = knav_queue_setup_regions(kdev, regions);