X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2Fplatforms%2Fradstone_ppc7d.c;h=872c0a3ba3c798b2e1297da971d517ee30ed023a;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=bc26b6d71c1d1cf988d02dd4e0024a978835d9fc;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/arch/ppc/platforms/radstone_ppc7d.c b/arch/ppc/platforms/radstone_ppc7d.c index bc26b6d71..872c0a3ba 100644 --- a/arch/ppc/platforms/radstone_ppc7d.c +++ b/arch/ppc/platforms/radstone_ppc7d.c @@ -1,4 +1,6 @@ /* + * arch/ppc/platforms/radstone_ppc7d.c + * * Board setup routines for the Radstone PPC7D boards. * * Author: James Chapman @@ -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;