[PATCH 2.6.11] ppc32: update Radstone ppc7d platform
James Chapman
jchapman at katalix.com
Wed Mar 16 20:46:29 EST 2005
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!
More information about the Linuxppc-embedded
mailing list