tools/testing/cxl: Use dev_is_platform()
PATCH 1/1 tools/testing/cxl: Use dev_is_platform()
From: Kunwu Chan <[email protected]>
Use dev_is_platform() instead of checking bus type directly.
Signed-off-by Kunwu Chan <[email protected]>
--- tools/testing/cxl/mock_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/cxl/mock_acpi.c +1 -1
@@ -18,7 +18,7 @@ struct acpi_device *to_cxl_host_bridge(struct device *host, struct device *dev) goto out; } -if (dev->bus == &platform_bus_type) +if (dev_is_platform (dev)) goto out; adev =to_acpi_device (dev);
Signature · 1 line
2.41.0
Quoted 5 lines · On Tue, 27 Aug 2024 17:51:23 +0800 Kunwu Chan <[email protected]> wrote:
From: Kunwu Chan <[email protected]>
Use
dev_is_platform()instead of checking bus type directly.Signed-off-by Kunwu Chan <[email protected]>
Reviewed-by Jonathan Cameron <[email protected]>