]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Kconfig: Make MACB depend on COMMON_CLK
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 25 Jun 2019 08:48:27 +0000 (01:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 21:09:32 +0000 (14:09 -0700)
commit2ab84e8c5bfc9460290cf6c51f397bc107aa04da
tree80cdc3b9203588a5e7ae939868d41d4d401e3c51
parent1bf5c5f9dd5d62563b0b660500ec64b94d8eb653
net: macb: Kconfig: Make MACB depend on COMMON_CLK

commit 170fa65c6773 ("macb: Add support for SiFive FU540-C000") added a
dependency on the common clock framework to the macb driver, but didn't
express that dependency in Kconfig.  As a result macb now fails to
compile on systems without COMMON_CLK, which specifically causes a build
failure on powerpc allyesconfig.

This patch adds the dependency, which results in the macb driver no
longer being selectable on systems without the common clock framework.
All known systems that have this device already support the common clock
framework, so this should not cause trouble for any uses.  Supporting
both the FU540-C000 and systems without COMMON_CLK is quite ugly.

I've build tested this on powerpc allyesconfig and RISC-V defconfig
(which selects MACB), but I have not even booted the resulting kernels.

Fixes: 170fa65c6773 ("macb: Add support for SiFive FU540-C000")
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/Kconfig