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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent 1f9651b commit 1c1d348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)