staging: fsl-mc: add function to return pointer to root dprc
authorItai Katz <itai.katz@freescale.com>
Sun, 4 Oct 2015 07:09:52 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:55:45 +0000 (09:55 +0100)
commite4ea40f98d2fd9ec01893c0c1a4718f92adac800
tree96428d2dc4bc4e8b357843dd461bcfce84f1431d
parentb55f00c6edf380e8bb2211dfd466f7c36500f2fe
staging: fsl-mc: add function to return pointer to root dprc

To support multiple root dprcs, instead of relying on the
dev_root field of the bus type struct, instead create a
function to traverse to the root dprc and return a pointer
to the device struct

Signed-off-by: Itai Katz <itai.katz@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-bus.c