staging: fsl-mc: abstract test for whether a dprc is a root dprc
authorItai Katz <itai.katz@freescale.com>
Sun, 4 Oct 2015 07:09:51 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:55:45 +0000 (09:55 +0100)
commitb55f00c6edf380e8bb2211dfd466f7c36500f2fe
treee99c8a5a0fb352ee4a234c6c90d3b23c36c2a348
parent14f928054a057edf80d154314946664bbc4c2a46
staging: fsl-mc: abstract test for whether a dprc is a root dprc

Instead of relying on assumptions about fields in data
structures, abstract the test for whether a dprc is a root
dprc into a function.

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