From: Florian Fainelli Date: Fri, 26 Nov 2010 09:39:54 +0000 (+0100) Subject: gpio: Fix null pointer dereference while accessing rdc321x platform_data X-Git-Tag: v2.6.37-rc8~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa6469cb5b2d16703464c344b943e2c025cb7858;p=pandora-kernel.git gpio: Fix null pointer dereference while accessing rdc321x platform_data rdc321x-gpio currently fetches its driver specific data by using the platform_device->platform_data pointer, this is wrong because the mfd device which registers our platform_device has been added using mfd_add_device() which sets the platform_device->driver_data pointer instead. Signed-off-by: Florian Fainelli CC: stable@kernel.org Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed