From: David Brownell Date: Tue, 2 Dec 2008 05:50:13 +0000 (-0800) Subject: regulator: init/link earlier X-Git-Tag: v2.6.29-rc1~44^2~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9f4dab49e5351aead75d20f2d39acd0d6cf5f1c6;p=~shefty%2Frdma-dev.git regulator: init/link earlier Move regulator earlier in link sequence. The regulator core currently initializes as a core_initcall() to be available early ... but then it links way late, throwing away that benefit, so regulators available at e.g. subsys_initcall() are not available to subsystems which need to use them. Signed-off-by: David Brownell Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/Makefile b/drivers/Makefile index e121b66ef08..6326f4dbbda 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -18,6 +18,9 @@ obj-$(CONFIG_ARM_AMBA) += amba/ obj-$(CONFIG_XEN) += xen/ +# regulators early, since some subsystems rely on them to initialize +obj-$(CONFIG_REGULATOR) += regulator/ + # char/ comes before serial/ etc so that the VT console is the boot-time # default. obj-y += char/ @@ -101,5 +104,4 @@ obj-$(CONFIG_PPC_PS3) += ps3/ obj-$(CONFIG_OF) += of/ obj-$(CONFIG_SSB) += ssb/ obj-$(CONFIG_VIRTIO) += virtio/ -obj-$(CONFIG_REGULATOR) += regulator/ obj-$(CONFIG_STAGING) += staging/