]> git.karo-electronics.de Git - karo-tx-linux.git/commit
base/platform: Only insert MEM and IO resources
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Tue, 26 May 2015 07:31:23 +0000 (09:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jun 2015 01:15:17 +0000 (10:15 +0900)
commit36d4b29260753ad78b1ce4363145332c02519adc
treecd1e26be2343ba475057caf1b9357bd9f5480958
parente0fd9b1d9c44c0966e322046912a0a0bce237d42
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>
drivers/base/platform.c