Commit 97e176fc authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski
Browse files

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: 19fa4f2a ("r8169: fix LED-related deadlock on module removal")
Reported-by: default avatarVenkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Tested-By: default avatarVenkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/d080038c-eb6b-45ac-9237-b8c1cdd7870f@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 06dfcd40
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5046,6 +5046,7 @@ static void rtl_remove_one(struct pci_dev *pdev)

	cancel_work_sync(&tp->wk.work);

	if (IS_ENABLED(CONFIG_R8169_LEDS))
		r8169_remove_leds(tp->leds);

	unregister_netdev(tp->dev);