From: Uwe Kleine-König Date: Mon, 11 Jan 2010 14:05:35 +0000 (+0100) Subject: mtd: mxc-nand: no need to check for validity of platform driver data X-Git-Tag: v2.6.35-rc1~465^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b840bc11b5062803c204d8a9625a1a1c5812d6d6;p=pandora-kernel.git mtd: mxc-nand: no need to check for validity of platform driver data 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. Signed-off-by: Uwe Kleine-König Reported-by: David Binderman Signed-off-by: Artem Bityutskiy Acked-by: Sascha Hauer Signed-off-by: David Woodhouse --- Reading git-diff-tree failed