Skip to content

Commit 3566cf1

Browse files
ainguraXmarquieguinashif
authored andcommitted
drivers: eth: e1000: only enable e1000 clock on e1000 configured
e1000 clock should only be enabled by default if e1000 driver is configured Signed-off-by: Xabier Marquiegui <[email protected]>
1 parent 734e528 commit 3566cf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/ethernet/Kconfig.e1000

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ menuconfig ETH_E1000
99
help
1010
Enable Intel(R) PRO/1000 Gigabit Ethernet driver.
1111

12+
if ETH_E1000
13+
1214
config ETH_NIC_MODEL
1315
string
1416
default "e1000"
15-
depends on ETH_E1000
1617
help
1718
Tells what Qemu network model to use. This value is given as
1819
a parameter to -nic qemu command line option.
@@ -38,3 +39,5 @@ config ETH_E1000_PTP_CLOCK_SRC_HZ
3839
help
3940
Set the frequency in Hz sourced to the PTP timer.
4041
If the value is set properly, the timer will be accurate.
42+
43+
endif # ETH_E1000

0 commit comments

Comments
 (0)