From: Uwe Kleine-König Date: Wed, 20 Apr 2011 07:44:44 +0000 (+0200) Subject: driver core/platform_device_add_resources: set resource to NULL if !res X-Git-Tag: v3.0-rc1~390^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea896238fbfdbce254f51fc8fd78c59df50081f;p=pandora-kernel.git driver core/platform_device_add_resources: set resource to NULL if !res This makes the res = NULL case more consistant to the res != NULL case as now both overwrite pdev->resource. Reviewed-by: Viresh Kumar Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed