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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Feb 5 08:47:12 EST 2010


Hello Artem,

On Sun, Jan 17, 2010 at 10:25:54AM +0200, Artem Bityutskiy wrote:
> 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
Up to now this patch didn't hit next.  Maybe you want to ask Steven
Rothwell to merge your tree, too?

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the linux-mtd mailing list