driver core/platform_device_add_data: free platform data before overwriting
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 20 Apr 2011 07:44:43 +0000 (09:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 23 Apr 2011 00:09:12 +0000 (17:09 -0700)
commit251e031d132ea3d03e0a32f2240c67f449979c5d
tree83ee22c8d152196875959a58c3e5fb99544468e4
parent27a33f9e8fb203e71925257cf039fe6ec623c5d1
driver core/platform_device_add_data: free platform data 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