Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305864 > unrolled thread
| Started by | Lee Jones <lee.jones@linaro.org> |
|---|---|
| First post | 2016-01-11 07:00 +0100 |
| Last post | 2016-01-11 07:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] mfd: mt6397: convert to arch_initcall Lee Jones <lee.jones@linaro.org> - 2016-01-11 07:00 +0100
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-01-11 07:00 +0100 |
| Subject | Re: [PATCH] mfd: mt6397: convert to arch_initcall |
| Message-ID | <qPDGj-6uJ-17@gated-at.bofh.it> |
On Wed, 23 Dec 2015, Henry Chen wrote:
> Since pinctrl or regulator of mt6396 need to initialize earlier to avoid
> probe deferring, also change the core driver to arch_init.
This is exactly what deferring probe was designed for; so that you
don't have to mess around with initcall ordering.
> Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
> ---
> drivers/mfd/mt6397-core.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c
> index 1749c1c..af98b4b 100644
> --- a/drivers/mfd/mt6397-core.c
> +++ b/drivers/mfd/mt6397-core.c
> @@ -285,7 +285,11 @@ static struct platform_driver mt6397_driver = {
> },
> };
>
> -module_platform_driver(mt6397_driver);
> +static int __init mt6397_core_init(void)
> +{
> + return platform_driver_register(&mt6397_driver);
> +}
> +arch_initcall(mt6397_core_init);
>
> MODULE_AUTHOR("Flora Fu, MediaTek");
> MODULE_DESCRIPTION("Driver for MediaTek MT6397 PMIC");
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to top | Article view | linux.kernel
csiph-web