diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-08-27 11:51:23 +0200 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2024-09-03 23:40:41 +0200 |
commit | 1c1d348b08ab7c106dd96bafb120f0888827174b (patch) | |
tree | 1e776b94ca41b4ea217477c643b149875f08c880 /tools | |
parent | cxl/port: Convert to use ERR_CAST() (diff) | |
download | linux-1c1d348b08ab7c106dd96bafb120f0888827174b.tar.xz linux-1c1d348b08ab7c106dd96bafb120f0888827174b.zip |
tools/testing/cxl: Use dev_is_platform()
Use dev_is_platform() instead of checking bus type directly.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240827095123.168696-1-kunwu.chan@linux.dev
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/cxl/mock_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/cxl/mock_acpi.c b/tools/testing/cxl/mock_acpi.c index 55813de26d46..8da94378ccec 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); |