]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
r8169: add missing conditional compiling for call to r8169_remove_leds
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 10 Apr 2024 13:11:28 +0000 (15:11 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Apr 2024 01:59:31 +0000 (18:59 -0700)
commit97e176fcbbf3c0f2bd410c9b241177c051f57176
tree456f5f1034f67d605e140326e5ec7594d7dc96b2
parent06dfcd4098cfdc4d4577d94793a4f9125386da8b
r8169: add missing conditional compiling for call to r8169_remove_leds

Add missing dependency on CONFIG_R8169_LEDS. As-is a link error occurs
if config option CONFIG_R8169_LEDS isn't enabled.

Fixes: 19fa4f2a85d7 ("r8169: fix LED-related deadlock on module removal")
Reported-by: Venkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-By: Venkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/d080038c-eb6b-45ac-9237-b8c1cdd7870f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c