]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] ppc: Fix platform_notify functions marked __init
authorAdrian Cox <adrian@humboldt.co.uk>
Wed, 8 Mar 2006 22:10:20 +0000 (22:10 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Mar 2006 02:23:21 +0000 (13:23 +1100)
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>
arch/ppc/platforms/cpci690.c
arch/ppc/platforms/ev64260.c
arch/ppc/platforms/ev64360.c
arch/ppc/platforms/hdpu.c
arch/ppc/platforms/katana.c
arch/ppc/platforms/radstone_ppc7d.c

index 55be550a0811e332534ad0c93c5a260d71050616..790475c22fd7405d896f4d5e12390d0f273eadc1 100644 (file)
@@ -288,7 +288,7 @@ cpci690_fixup_mpsc_pdata(struct platform_device *pdev)
        pdata->brg_clk_freq = cpci690_get_bus_freq();
 }
 
-static int __init
+static int
 cpci690_platform_notify(struct device *dev)
 {
        static struct {
index 6444760caa3ac8560748422dd285b66c7eef83d8..31e8e21e1d5cf93cf1c1aeb8d79ba4e7fd586af2 100644 (file)
@@ -414,7 +414,7 @@ ev64260_fixup_mpsc_pdata(struct platform_device *pdev)
        return;
 }
 
-static int __init
+static int
 ev64260_platform_notify(struct device *dev)
 {
        static struct {
index b5f52eba4fc168a60d7c3cf5fb66ba8f3644f38d..104ac9b16e8b2ee33039b2f564ef7a2d53ba9061 100644 (file)
@@ -298,7 +298,7 @@ ev64360_fixup_eth_pdata(struct platform_device *pdev)
 }
 #endif
 
-static int __init
+static int
 ev64360_platform_notify(struct device *dev)
 {
        static struct {
index 220674d883df65b404a08a10bfdf40c50825e477..fc869bb5b2b4231a5a5e6a710aff865235d5f13e 100644 (file)
@@ -351,7 +351,7 @@ static void __init hdpu_fixup_cpustate_pdata(struct platform_device *pd)
 }
 #endif
 
-static int __init hdpu_platform_notify(struct device *dev)
+static int hdpu_platform_notify(struct device *dev)
 {
        static struct {
                char *bus_id;
index 6f3bc6161746872b5a9e46d434abdb1395dfb926..ad21280e892095abd5fa6759b86bcf5cc4c03a4a 100644 (file)
@@ -596,7 +596,7 @@ katana_fixup_mv64xxx_pdata(struct platform_device *pdev)
 }
 #endif
 
-static int __init
+static int
 katana_platform_notify(struct device *dev)
 {
        static struct {
index 30188085bd382f18315d1a9426ec8afae719f49a..bc26b6d71c1d1cf988d02dd4e0024a978835d9fc 100644 (file)
@@ -709,7 +709,7 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
 }
 #endif
 
-static int __init ppc7d_platform_notify(struct device *dev)
+static int ppc7d_platform_notify(struct device *dev)
 {
        static struct {
                char *bus_id;