[PATCH] mxc-nand: no need to check for validity of platform drive data

Artem Bityutskiy dedekind1 at gmail.com
Sun Jan 17 03:25:54 EST 2010

On Mon, 2010-01-11 at 15:05 +0100, Uwe Kleine-König wrote:
> The probe function calls platform_set_drvdata with a valid pointer when
> the probe is successful.  As mxcnd_suspend and mxcnd_resume are only
> called on bound devices, platform_get_drvdata always returns non-NULL.
> This fix isn't critical as the pointer is always valid so it doesn't
> matter if the compiler generated code for it or not.

I've put these patches to my l2-mtd-2.6.git/master

Best Regards,
Artem Bityutskiy (Артём Битюцкий)

More information about the linux-mtd mailing list