Add dev_is_amba function and use dev_is_platform()/dev_is_amba()
instead of checking bus type directly.
Kunwu Chan (2):
amba: Add dev_is_amba() function and export it for modules
of/platform: PCI: Use dev_is_platform/dev_is_amba to identify
platform/amba devices
drivers/amba/bus.c | 6 ++++++
drivers/of/platform.c | 4 ++--
include/linux/amba/bus.h | 5 +++++
3 files changed, 13 insertions(+), 2 deletions(-)
--
2.43.0