Skip to content

Commit 78efa53

Browse files
mtkaczykbjorn-helgaas
authored andcommitted
leds: Init leds class earlier
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]>
1 parent 8400291 commit 78efa53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ obj-$(CONFIG_PINCTRL) += pinctrl/
1717
obj-$(CONFIG_GPIOLIB) += gpio/
1818
obj-y += pwm/
1919

20+
# LEDs must come before PCI, it is needed by NPEM driver
21+
obj-y += leds/
22+
2023
obj-y += pci/
2124

2225
obj-$(CONFIG_PARISC) += parisc/
@@ -130,7 +133,6 @@ obj-$(CONFIG_CPU_IDLE) += cpuidle/
130133
obj-y += mmc/
131134
obj-y += ufs/
132135
obj-$(CONFIG_MEMSTICK) += memstick/
133-
obj-y += leds/
134136
obj-$(CONFIG_INFINIBAND) += infiniband/
135137
obj-y += firmware/
136138
obj-$(CONFIG_CRYPTO) += crypto/

0 commit comments

Comments
 (0)