“eebdb0c1e1d63532399f7cbb65ade5969d63df06”上不存在“drivers/clocksource/qcom-timer.c”
提交 2c2b24d9 编写于 作者: D Daniel Lezcano

ARM: ux500: cpuidle: fix section mismatch

The dbx500_cpuidle_probe is tagged as an __init section but the variable
dbx500_cpuidle_plat_driver is not.

The dbx500_cpuidle_probe could not be declared as __init because of macro
module_platform_driver builds the exit function, tags as __exit and this one
refers to the dbx500_cpuidle_plat_driver which is an __initdata.

That leads to a section mismatch.

Fix it by removing the __init tag for the probe function.
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
上级 3e8ceca6
...@@ -111,7 +111,7 @@ static struct cpuidle_driver ux500_idle_driver = { ...@@ -111,7 +111,7 @@ static struct cpuidle_driver ux500_idle_driver = {
.state_count = 2, .state_count = 2,
}; };
static int __init dbx500_cpuidle_probe(struct platform_device *pdev) static int dbx500_cpuidle_probe(struct platform_device *pdev)
{ {
/* Configure wake up reasons */ /* Configure wake up reasons */
prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) | prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册