提交 1da52b0e 编写于 作者: H Horatiu Vultur 提交者: David S. Miller

net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module

When CONFIG_PTP_1588_CLOCK is compiled as a module, then the linking of
the lan966x fails because it can't find references to the following
functions 'ptp_clock_index', 'ptp_clock_register' and
'ptp_clock_unregister'

The fix consists in adding CONFIG_PTP_1588_CLOCK_OPTIONAL as a
dependency for the driver.

Fixes: d0964594 ("net: lan966x: Add support for ptp clocks")
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 48927142
config LAN966X_SWITCH config LAN966X_SWITCH
tristate "Lan966x switch driver" tristate "Lan966x switch driver"
depends on PTP_1588_CLOCK_OPTIONAL
depends on HAS_IOMEM depends on HAS_IOMEM
depends on OF depends on OF
depends on NET_SWITCHDEV depends on NET_SWITCHDEV
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册