[PATCH 0/2] Add dev_is_amba and replace the usage in platform

Kunwu Chan posted 2 patches 2 months ago
drivers/amba/bus.c       | 6 ++++++
drivers/of/platform.c    | 4 ++--
include/linux/amba/bus.h | 5 +++++
3 files changed, 13 insertions(+), 2 deletions(-)
[PATCH 0/2] Add dev_is_amba and replace the usage in platform
Posted by Kunwu Chan 2 months ago
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