Patch "leds: simatic-ipc-leds-gpio: Restore LEDS_CLASS dependency" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    leds: simatic-ipc-leds-gpio: Restore LEDS_CLASS dependency

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     leds-simatic-ipc-leds-gpio-restore-leds_class-depend.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 551390c8afcedcb8029d15bb5909959a15df4416
Author: Arnd Bergmann <arnd@xxxxxxxx>
Date:   Fri Jun 23 17:22:29 2023 +0200

    leds: simatic-ipc-leds-gpio: Restore LEDS_CLASS dependency
    
    [ Upstream commit 66c5e98bbf7b7b2ba0a095ef25bf55c7230e846e ]
    
    A recent rework accidentally lost the dependency on LEDS_CLASS, which
    leads to a link error when LED support is disbled:
    
    x86_64-linux-ld: drivers/leds/simple/simatic-ipc-leds.o: in function `simatic_ipc_leds_probe':
    simatic-ipc-leds.c:(.text+0x10c): undefined reference to `devm_led_classdev_register_ext'
    
    Add back the dependency that was there originally.
    
    Fixes: a6c80bec3c935 ("leds: simatic-ipc-leds-gpio: Add GPIO version of Siemens driver")
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Link: https://lore.kernel.org/r/20230623152233.2246285-1-arnd@xxxxxxxxxx
    Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/leds/simple/Kconfig b/drivers/leds/simple/Kconfig
index 44fa0f93cb3b3..02443e745ff3b 100644
--- a/drivers/leds/simple/Kconfig
+++ b/drivers/leds/simple/Kconfig
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config LEDS_SIEMENS_SIMATIC_IPC
 	tristate "LED driver for Siemens Simatic IPCs"
+	depends on LEDS_CLASS
 	depends on SIEMENS_SIMATIC_IPC
 	help
 	  This option enables support for the LEDs of several Industrial PCs



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux