From: Axel Lin Date: Thu, 29 Dec 2011 09:02:08 +0000 (+0800) Subject: regulator: Fix the error handling if create_regulator fails X-Git-Tag: v3.3-rc1~126^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcda432194fc7c4a2dbe9d7146f00b4b21e66c8c;p=pandora-kernel.git regulator: Fix the error handling if create_regulator fails In the case of create_regulator() fails, goto the error path immediately. It does not make sense to update rdev->open_count if create_regulator fails. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed