Commit e1c0e1a3 authored by Barry Song's avatar Barry Song Committed by Olof Johansson

ARM: prima2: pm: drop redundant postcore_initcall

This will delete some redundant calling of sirfsoc_of_pwrc_init() and
sirfsoc_memc_init() for non-CSR platforms if we use multi-platform.

Cc: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent fe74f780
...@@ -88,12 +88,6 @@ static const struct platform_suspend_ops sirfsoc_pm_ops = { ...@@ -88,12 +88,6 @@ static const struct platform_suspend_ops sirfsoc_pm_ops = {
.valid = suspend_valid_only_mem, .valid = suspend_valid_only_mem,
}; };
int __init sirfsoc_pm_init(void)
{
suspend_set_ops(&sirfsoc_pm_ops);
return 0;
}
static const struct of_device_id pwrc_ids[] = { static const struct of_device_id pwrc_ids[] = {
{ .compatible = "sirf,prima2-pwrc" }, { .compatible = "sirf,prima2-pwrc" },
{} {}
...@@ -121,7 +115,6 @@ static int __init sirfsoc_of_pwrc_init(void) ...@@ -121,7 +115,6 @@ static int __init sirfsoc_of_pwrc_init(void)
return 0; return 0;
} }
postcore_initcall(sirfsoc_of_pwrc_init);
static const struct of_device_id memc_ids[] = { static const struct of_device_id memc_ids[] = {
{ .compatible = "sirf,prima2-memc" }, { .compatible = "sirf,prima2-memc" },
...@@ -152,4 +145,11 @@ static int __init sirfsoc_memc_init(void) ...@@ -152,4 +145,11 @@ static int __init sirfsoc_memc_init(void)
{ {
return platform_driver_register(&sirfsoc_memc_driver); return platform_driver_register(&sirfsoc_memc_driver);
} }
postcore_initcall(sirfsoc_memc_init);
int __init sirfsoc_pm_init(void)
{
sirfsoc_of_pwrc_init();
sirfsoc_memc_init();
suspend_set_ops(&sirfsoc_pm_ops);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment