Skip to content

Commit fa40763

Browse files
Yang Yingliangjic23
authored andcommitted
iio: backend: fix wrong pointer passed to IS_ERR()
It should be fwnode_back passed to IS_ERR(). Fixes: c464cc6 ("iio: add child nodes support in iio backend framework") Signed-off-by: Yang Yingliang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent ef5f5e7 commit fa40763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/industrialio-backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ static struct iio_backend *__devm_iio_backend_fwnode_get(struct device *dev, con
737737
}
738738

739739
fwnode_back = fwnode_find_reference(fwnode, "io-backends", index);
740-
if (IS_ERR(fwnode))
741-
return dev_err_cast_probe(dev, fwnode,
740+
if (IS_ERR(fwnode_back))
741+
return dev_err_cast_probe(dev, fwnode_back,
742742
"Cannot get Firmware reference\n");
743743

744744
guard(mutex)(&iio_back_lock);

0 commit comments

Comments
 (0)