Andrew Morton wrote: > "Mark A. Greer" <mgreer at mvista.com> wrote: > >> +ppc7d_fixup_i2c_pdata(struct platform_device *pdev) >> +{ >> + struct mv64xxx_i2c_pdata *pdata; >> + int i; >> + >> + pdata = pdev->dev.platform_data; >> + if (pdata == NULL) { >> + pdata = kmalloc(GFP_KERNEL, sizeof(*pdata)); > > > I'll switch those kmalloc args around for you.
Wow, I'm surprised it ever worked! Thanks!