From: Ricardo Ribalda Delgado Date: Tue, 26 May 2015 07:31:26 +0000 (+0200) Subject: base/platform: Remove code duplication X-Git-Tag: omap-for-v4.2/fixes-rc1^2~93^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d9d4b1469b0d9748145e168fc9ec585e1f3f4b0;p=pandora-kernel.git base/platform: Remove code duplication Failure path of platform_device_add was almost the same as platform_device_del. Refactor same code in a function. Acked-by: Rob Herring Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed