linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / ppc / platforms / radstone_ppc7d.c
index bc26b6d..872c0a3 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * arch/ppc/platforms/radstone_ppc7d.c
+ *
  * Board setup routines for the Radstone PPC7D boards.
  *
  * Author: James Chapman <jchapman@katalix.com>
@@ -683,10 +685,11 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
 
        pdata = pdev->dev.platform_data;
        if (pdata == NULL) {
-               pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
+               pdata = kmalloc(sizeof(*pdata), GFP_KERNEL);
                if (pdata == NULL)
                        return;
 
+               memset(pdata, 0, sizeof(*pdata));
                pdev->dev.platform_data = pdata;
        }
 
@@ -709,7 +712,7 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
 }
 #endif
 
-static int ppc7d_platform_notify(struct device *dev)
+static int __init ppc7d_platform_notify(struct device *dev)
 {
        static struct {
                char *bus_id;