[PATCH 2.6.11] ppc32: update Radstone ppc7d platform

Andrew Morton akpm at osdl.org
Wed Mar 16 17:50:50 EST 2005


"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.



More information about the Linuxppc-embedded mailing list