Commit 195c6d19 authored by Ido Yariv's avatar Ido Yariv Committed by Suman Anna
Browse files

remoteproc: add safe version of vdev_to_rproc



vdev_to_rproc() assumes that the virtio device was created by remoteproc.
In some cases, however, this assumption might not hold. For instance,
when deducing a remoteproc from a given virtio device of a rpmsg
channel. In such cases the function should return an error instead of a
bogus pointer.

Signed-off-by: default avatarIdo Yariv <ido@wizery.com>
[s-anna@ti.com: move the rproc_type to internal header]
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent b953c0d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment