mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
media: mei: csi: Warn less verbosely of a missing device fwnode
The check for having device fwnode was meant to be a sanity check but this
also happens if the ACPI DSDT has graph port nodes on sensor device(s) but
not on the IVSC device. Use a more meaningful warning message to tell
about this.
Fixes: 33116eb12c
("media: ivsc: csi: Use IPU bridge")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
328af04b1a
commit
cc864821c7
@ -680,8 +680,10 @@ static int mei_csi_probe(struct mei_cl_device *cldev,
|
||||
put_device(&ipu->dev);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (WARN_ON(!dev_fwnode(dev)))
|
||||
if (!dev_fwnode(dev)) {
|
||||
dev_err(dev, "mei-csi probed without device fwnode!\n");
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
csi = devm_kzalloc(dev, sizeof(struct mei_csi), GFP_KERNEL);
|
||||
if (!csi)
|
||||
|
Loading…
Reference in New Issue
Block a user