aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/hdpu.c
diff options
context:
space:
mode:
authorAdrian Cox <adrian@humboldt.co.uk>2006-03-08 17:10:20 -0500
committerPaul Mackerras <paulus@samba.org>2006-03-16 21:23:21 -0500
commitbbbe1212bd6f815290f782ba5b489467b54131dc (patch)
tree3964aa125e7039ff005779d0ba88205d1f9e5f3c /arch/ppc/platforms/hdpu.c
parent7e5b59384eebe35bff8429243f089931ce1cdf38 (diff)
[PATCH] ppc: Fix platform_notify functions marked __init
While adding USB support to an MV64360 based board this week, I discovered that all MV64x60 boards in the kernel have platform_notify functions marked with __init. This causes an oops if a device is added after boot. The patch below removes the __init markers. I do not have all these boards to test on, but the change seems very unlikely to break anything else. Signed-off-by: Adrian Cox <adrian@humboldt.co.uk> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/hdpu.c')
-rw-r--r--arch/ppc/platforms/hdpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/platforms/hdpu.c b/arch/ppc/platforms/hdpu.c
index 220674d883df..fc869bb5b2b4 100644
--- a/arch/ppc/platforms/hdpu.c
+++ b/arch/ppc/platforms/hdpu.c
@@ -351,7 +351,7 @@ static void __init hdpu_fixup_cpustate_pdata(struct platform_device *pd)
351} 351}
352#endif 352#endif
353 353
354static int __init hdpu_platform_notify(struct device *dev) 354static int hdpu_platform_notify(struct device *dev)
355{ 355{
356 static struct { 356 static struct {
357 char *bus_id; 357 char *bus_id;