From: Uwe Kleine-König Date: Wed, 20 Apr 2011 07:44:42 +0000 (+0200) Subject: driver core/platform_device_add_data: set platform_data to NULL if !data X-Git-Tag: v3.0-rc1~390^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a33f9e8fb203e71925257cf039fe6ec623c5d1;p=pandora-kernel.git driver core/platform_device_add_data: set platform_data to NULL if !data This makes the data = NULL case more consistent to the data != NULL case. The functional change is that now platform_device_add_data(somepdev, NULL, somesize) sets pdev->dev.platform_data to NULL instead of not touching it. Reviewed-by: Viresh Kumar Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed