driver core/platform_device_add_resources: free resource before overwriting
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 20 Apr 2011 07:44:45 +0000 (09:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 23 Apr 2011 00:09:13 +0000 (17:09 -0700)
commit4a03d6f7c863a039b937649a93341615f531358e
tree70906acfe285ec87c8b037e61da5fc27dd21f78b
parentcea896238fbfdbce254f51fc8fd78c59df50081f
driver core/platform_device_add_resources: free resource before overwriting

Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c