Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df79fd25 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit 4cba398f37f868f515ff12868418dc28574853a1 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6a020a28
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1788,6 +1788,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);