Skip to content

Commit 1c1d348

Browse files
KunWuChandavejiang
authored andcommitted
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>
1 parent 1f9651b commit 1c1d348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/cxl/mock_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct acpi_device *to_cxl_host_bridge(struct device *host, struct device *dev)
1818
goto out;
1919
}
2020

21-
if (dev->bus == &platform_bus_type)
21+
if (dev_is_platform(dev))
2222
goto out;
2323

2424
adev = to_acpi_device(dev);

0 commit comments

Comments
 (0)