diff options
author | 2018-12-10 16:50:19 +0000 | |
---|---|---|
committer | 2019-01-11 15:06:54 -0600 | |
commit | afb77422819ff60612e9b7d36461b9b2bc8e038e (patch) | |
tree | a9976bca434fae99f9064cb9b745990f117d2365 /drivers/bus/tegra-gmi.c | |
parent | soc: fsl: dpio: add a device_link at dpaa2_io_service_register (diff) | |
download | linux-dev-afb77422819ff60612e9b7d36461b9b2bc8e038e.tar.xz linux-dev-afb77422819ff60612e9b7d36461b9b2bc8e038e.zip |
bus: fsl-mc: automatically add a device_link on fsl_mc_[portal,object]_allocate
Allocatable devices can be acquired by drivers on the fsl-mc bus using
the fsl_mc_portal_allocate or fsl_mc_object_allocate functions. Add a
device link between the consumer device and the supplier device so that
proper resource management is achieved.
Also, adding a link between these devices ensures that a proper unbind
order is respected (ie before the supplier device is unbound from its
respective driver all consumer devices will be notified and unbound
first).
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/bus/tegra-gmi.c')
0 files changed, 0 insertions, 0 deletions