diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-06-20 18:43:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-21 03:25:23 +0300 |
commit | f4d0323bae4ed24d9f9f5bba3d27def06354fee7 (patch) | |
tree | 654fd6dd0c090a73183ae05eef868dd02abcbd22 /drivers/net/dsa/ocelot/Kconfig | |
parent | 56583862b87b70dded31b1768efe3d47d6066887 (diff) | |
download | linux-f4d0323bae4ed24d9f9f5bba3d27def06354fee7.tar.xz |
net: mscc: ocelot: convert MSCC_OCELOT_SWITCH into a library
Hide the CONFIG_MSCC_OCELOT_SWITCH option from users. It is meant to be
only a hardware library which is selected by the drivers that use it
(ocelot, felix).
Since it is "selected" from Kconfig, all its dependencies are manually
transferred to the driver that selects it. This is because "select" in
Kconfig language is a bit of a mess, and doesn't handle dependencies of
selected options quite right.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/ocelot/Kconfig')
-rw-r--r-- | drivers/net/dsa/ocelot/Kconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/dsa/ocelot/Kconfig b/drivers/net/dsa/ocelot/Kconfig index a5b7cca03d09..3d3c2a6fb0c0 100644 --- a/drivers/net/dsa/ocelot/Kconfig +++ b/drivers/net/dsa/ocelot/Kconfig @@ -4,7 +4,9 @@ config NET_DSA_MSCC_FELIX depends on NET_DSA && PCI depends on NET_VENDOR_MICROSEMI depends on NET_VENDOR_FREESCALE - select MSCC_OCELOT_SWITCH + depends on HAS_IOMEM + depends on REGMAP_MMIO + select MSCC_OCELOT_SWITCH_LIB select NET_DSA_TAG_OCELOT select FSL_ENETC_MDIO help |