Skip to content

Commit

Permalink
net: rtl8169: add depends on PCI
Browse files Browse the repository at this point in the history
The rtl8169 driver uses calls to dm_pci_bus_to_phys,
which are compiled under CONFIG_PCI.

Without CONFIG_PCI, this happens:

drivers/net/rtl8169.o: in function `rtl_recv_common':
drivers/net/rtl8169.c:555: undefined reference to `dm_pci_bus_to_phys'

It is only natural that this driver depends on CONFIG_PCI then.
The device does not work connected in another way anyway, and the driver
does not assume anything else at this moment.

Signed-off-by: Eugen Hristev <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
  • Loading branch information
ehristev authored and trini committed Jun 14, 2023
1 parent 7a5f4e4 commit 89d8c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ config RTL8139

config RTL8169
bool "Realtek 8169 series Ethernet controller driver"
depends on PCI
help
This driver supports Realtek 8169 series gigabit ethernet family of
PCI/PCIe chipsets/adapters.
Expand Down

0 comments on commit 89d8c56

Please sign in to comment.