misc: Kconfig: Make MCHP_LAN966X_PCI depend on OF_OVERLAY
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 29 Nov 2024 18:29:44 +0000 (18:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2025 09:16:31 +0000 (10:16 +0100)
commit2d390e063464f91cb071dfa5495868ba6b120d8a
tree82363599ef0e75251ef5e6d8ed451c17df13ab67
parenta6e208736587648fc1eb8a4d832d90427586f367
misc: Kconfig: Make MCHP_LAN966X_PCI depend on OF_OVERLAY

Drivers should depend on configurations that can be user-configurable
instead of selecting them.

Without this patch, OF cannot be disabled this way:
make allyesconfig
scripts/config -d OF
make olddefconfig

Which is a typical test in CI systems like media-ci.

Now that we are at it, remove the dependency on OF, it will come
automatically from OF_OVERLAY.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241129-lan966x-depend-v2-1-72bb9397f421@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/Kconfig