Skip to content

Commit d8535a0

Browse files
YijingWangdavem330
authored andcommitted
3c59x/net: Use dev_is_pci() instead of hardcoding
Use PCI standard macro dev_is_pci() instead of hardcoding. Signed-off-by: Yijing Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5349d93 commit d8535a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/3com/3c59x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ DEFINE_WINDOW_IO(16)
693693
DEFINE_WINDOW_IO(32)
694694

695695
#ifdef CONFIG_PCI
696-
#define DEVICE_PCI(dev) (((dev)->bus == &pci_bus_type) ? to_pci_dev((dev)) : NULL)
696+
#define DEVICE_PCI(dev) ((dev_is_pci(dev)) ? to_pci_dev((dev)) : NULL)
697697
#else
698698
#define DEVICE_PCI(dev) NULL
699699
#endif

0 commit comments

Comments
 (0)