[CPUFREQ] Refactor locking in cpufreq_add_dev
authorDave Jones <davej@redhat.com>
Wed, 5 Mar 2008 19:07:34 +0000 (14:07 -0500)
committerDave Jones <davej@redhat.com>
Mon, 28 Apr 2008 19:05:42 +0000 (15:05 -0400)
commit457091181176643787a547dc04eb3cf5dcd822ce
tree4e9e5434960137470cd39348cef4dbc73d7675d8
parent905d77cd95e856b8e0b2d099fb70b9b8ccb7337e
[CPUFREQ] Refactor locking in cpufreq_add_dev

Simplify this by moving the unlocking out of the error
paths into the exit path.

Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
drivers/cpufreq/cpufreq.c