Skip to content

Commit

Permalink
leds: Init leds class earlier
Browse files Browse the repository at this point in the history
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/[email protected]
Suggested-by: Dan Williams <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Tested-by: Stuart Hayes <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
  • Loading branch information
mtkaczyk authored and bjorn-helgaas committed Sep 4, 2024
1 parent 8400291 commit 78efa53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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/
Expand Down

0 comments on commit 78efa53

Please sign in to comment.