From 36d4b29260753ad78b1ce4363145332c02519adc Mon Sep 17 00:00:00 2001 From: Ricardo Ribalda Delgado Date: Tue, 26 May 2015 09:31:23 +0200 Subject: [PATCH] base/platform: Only insert MEM and IO resources platform_device_del only checks the type of the resource in order to call release_resource. On the other hand, platform_device_add calls insert_resource for any resource that has a parent. Make both code branches balanced. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed