From: David Daney Date: Thu, 23 Sep 2010 18:23:29 +0000 (-0700) Subject: MIPS: Don't place cu2 notifiers in __cpuinitdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c7106c48a061e26f646391cfe8ba7cbd28516b6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git MIPS: Don't place cu2 notifiers in __cpuinitdata The notifiers may be called at any time, so the notifier_block cannot be in init memory. Signed-off-by: David Daney To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1592/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/cop2.h b/arch/mips/include/asm/cop2.h index 2cb2f0c2c4f..3532e2c5f09 100644 --- a/arch/mips/include/asm/cop2.h +++ b/arch/mips/include/asm/cop2.h @@ -24,7 +24,7 @@ extern int cu2_notifier_call_chain(unsigned long val, void *v); #define cu2_notifier(fn, pri) \ ({ \ - static struct notifier_block fn##_nb __cpuinitdata = { \ + static struct notifier_block fn##_nb = { \ .notifier_call = fn, \ .priority = pri \ }; \