Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b82a2272 authored by Yijing Wang's avatar Yijing Wang Committed by Joerg Roedel
Browse files

iommu/amd: Use dev_is_pci() to check whether it is pci device



Use PCI standard marco dev_is_pci() instead of directly compare
pci_bus_type to check whether it is pci device.

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent d6e0a2dd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -248,8 +248,8 @@ static bool check_device(struct device *dev)
	if (!dev || !dev->dma_mask)
		return false;

	/* No device or no PCI device */
	if (dev->bus != &pci_bus_type)
	/* No PCI device */
	if (!dev_is_pci(dev))
		return false;

	devid = get_device_id(dev);