mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-11 14:26:34 +00:00
3c59x/net: Use dev_is_pci() instead of hardcoding
Use PCI standard macro dev_is_pci() instead of hardcoding. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5349d93773
commit
d8535a0a02
@ -693,7 +693,7 @@ DEFINE_WINDOW_IO(16)
|
||||
DEFINE_WINDOW_IO(32)
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
#define DEVICE_PCI(dev) (((dev)->bus == &pci_bus_type) ? to_pci_dev((dev)) : NULL)
|
||||
#define DEVICE_PCI(dev) ((dev_is_pci(dev)) ? to_pci_dev((dev)) : NULL)
|
||||
#else
|
||||
#define DEVICE_PCI(dev) NULL
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user