]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94a1d5873903a3ba4b5871725b60b27564258ff2
treee80c9ce40524669acb2eb3dbae3f6fcccdb7b1b4
parent3bf0520fd5d7575f592403e7dcca600ac31296bc
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