[CPUFREQ] Bugfix: Call driver exit in cpufreq_add_dev error path
commit8085e1f1f0645fc6ddefcb54fdcba95808df5049
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Thu, 25 Aug 2005 20:14:06 +0000 (25 13:14 -0700)
committerDave Jones <davej@redhat.com>
Thu, 1 Sep 2005 05:21:28 +0000 (31 22:21 -0700)
tree9e275032a6084be99b2e7cd1d63bfd42b990d05a
parent6b39374a27eb4be7e9d82145ae270ba02ea90dc8
[CPUFREQ] Bugfix: Call driver exit in cpufreq_add_dev error path

A minor fix for cpufreq_add_dev() error path. We need to call driver->exit()
if driver_init() call has succeeded.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c