]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: Init leds class earlier
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 4 Sep 2024 10:48:46 +0000 (12:48 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 4 Sep 2024 22:24:58 +0000 (17:24 -0500)
NPEM driver will require leds class, there is an init-order conflict.
Make sure that LEDs initialization happens first and add comment.

Link: https://lore.kernel.org/r/20240904104848.23480-2-mariusz.tkaczyk@linux.intel.com
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Stuart Hayes <stuart.w.hayes@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/Makefile

index fe9ceb0d2288aded0cfe54c122bf3c8971f41a39..45d1c3e630f754672deb5baf1491e57f4ca830d3 100644 (file)
@@ -17,6 +17,9 @@ obj-$(CONFIG_PINCTRL)         += pinctrl/
 obj-$(CONFIG_GPIOLIB)          += gpio/
 obj-y                          += pwm/
 
+# LEDs must come before PCI, it is needed by NPEM driver
+obj-y                          += leds/
+
 obj-y                          += pci/
 
 obj-$(CONFIG_PARISC)           += parisc/
@@ -130,7 +133,6 @@ obj-$(CONFIG_CPU_IDLE)              += cpuidle/
 obj-y                          += mmc/
 obj-y                          += ufs/
 obj-$(CONFIG_MEMSTICK)         += memstick/
-obj-y                          += leds/
 obj-$(CONFIG_INFINIBAND)       += infiniband/
 obj-y                          += firmware/
 obj-$(CONFIG_CRYPTO)           += crypto/