From: Kunwu Chan Date: Tue, 27 Aug 2024 09:51:23 +0000 (+0800) Subject: tools/testing/cxl: Use dev_is_platform() X-Git-Tag: v6.12-rc1~25^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c1d348b08ab7c106dd96bafb120f0888827174b;p=thirdparty%2Flinux.git tools/testing/cxl: Use dev_is_platform() Use dev_is_platform() instead of checking bus type directly. Signed-off-by: Kunwu Chan Reviewed-by: Jonathan Cameron Link: https://patch.msgid.link/20240827095123.168696-1-kunwu.chan@linux.dev Signed-off-by: Dave Jiang --- diff --git a/tools/testing/cxl/mock_acpi.c b/tools/testing/cxl/mock_acpi.c index 55813de26d46d..8da94378ccecc 100644 --- a/tools/testing/cxl/mock_acpi.c +++ b/tools/testing/cxl/mock_acpi.c @@ -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);