From: Axel Lin Date: Mon, 26 Jul 2010 02:41:58 +0000 (+0800) Subject: wm8350-regulator: fix wm8350_register_regulator error handling X-Git-Tag: v2.6.35~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a1c5129de1caf4526b8df5f200ff628b2ffab4;p=pandora-kernel.git wm8350-regulator: fix wm8350_register_regulator error handling In the case of platform_device_add() fail, we should call platform_device_put() instead of platform_device_del() Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed