staging: fsl-mc: abstract test for existence of fsl-mc bus
authorItai Katz <itai.katz@freescale.com>
Sun, 4 Oct 2015 07:09:50 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:55:45 +0000 (09:55 +0100)
commit14f928054a057edf80d154314946664bbc4c2a46
treee80c9ce40524669acb2eb3dbae3f6fcccdb7b1b4
parent9f31b6955932f9ec2dbf1a1e1827e18ce7239943
staging: fsl-mc: abstract test for existence of fsl-mc bus

Add function to test for existence of an fsl-mc bus instance
instead of doing this by looking directly at a field in the
bus type 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
drivers/staging/fsl-mc/include/mc.h