]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: sfp: Do not use "imply HWMON"
authorGuenter Roeck <linux@roeck-us.net>
Thu, 19 Jul 2018 16:41:39 +0000 (09:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2018 02:26:54 +0000 (19:26 -0700)
commitcb761a8659af644f321858fb7567d14c30be4094
tree6e9900b2674760150855567bd2260ec580ab1c1b
parent4cb0e9ba9cececfcbc44208b8f4e1b5b38efee3c
net: phy: sfp: Do not use "imply HWMON"

"imply HWMON" was supposed to ensure that the SFP phy code can be built
with HWMON enabled or disabled while at the same time ensuring that
HWMON is not built as module if SFP is built into the kernel.
Unfortunately, that does not work as intended. With "allmodconfig", it
results in several unrelated HWMON drivers to be disabled instead of
being built as module as expected.

Let's use the old "depends on HWMON || HWMON=n" instead. This is slightly
different (it enforces SFP to be built as module if HWMON is built as
module), but it is better than the alternative of using "IS_REACHABLE()"
in the driver since that would disable sensor support if HWMON is built
as module and SFP is built into the kernel.

Fixes: d7f1b042f3e0 ("net: phy: sfp: Add HWMON support for module sensors")
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Kconfig