Commit 1c1d348b authored by Kunwu Chan's avatar Kunwu Chan Committed by Dave Jiang

tools/testing/cxl: Use dev_is_platform()

Use dev_is_platform() instead of checking bus type directly.
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240827095123.168696-1-kunwu.chan@linux.devSigned-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 1f9651bf
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment