mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
1f9651bfc5
commit
1c1d348b08
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue