commit | 36d4b29260753ad78b1ce4363145332c02519adc | [log] [tgz] |
---|---|---|
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | Tue May 26 09:31:23 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jun 01 10:15:17 2015 +0900 |
tree | cd1e26be2343ba475057caf1b9357bd9f5480958 | |
parent | e0fd9b1d9c44c0966e322046912a0a0bce237d42 [diff] |
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 <ricardo.ribalda@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>