[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>
This commit is contained in:
Dave Jones 2008-03-05 14:07:34 -05:00
commit 4570911811