git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
i386
/
kernel
/
cpu
/
cpufreq
/
sc520_freq.c
diff --git
a/arch/i386/kernel/cpu/cpufreq/sc520_freq.c
b/arch/i386/kernel/cpu/cpufreq/sc520_freq.c
index
ef457d5
..
b8fb4b5
100644
(file)
--- a/
arch/i386/kernel/cpu/cpufreq/sc520_freq.c
+++ b/
arch/i386/kernel/cpu/cpufreq/sc520_freq.c
@@
-153,6
+153,7
@@
static struct cpufreq_driver sc520_freq_driver = {
static int __init sc520_freq_init(void)
{
struct cpuinfo_x86 *c = cpu_data;
static int __init sc520_freq_init(void)
{
struct cpuinfo_x86 *c = cpu_data;
+ int err;
/* Test if we have the right hardware */
if(c->x86_vendor != X86_VENDOR_AMD ||
/* Test if we have the right hardware */
if(c->x86_vendor != X86_VENDOR_AMD ||
@@
-166,7
+167,11
@@
static int __init sc520_freq_init(void)
return -ENOMEM;
}
return -ENOMEM;
}
- return cpufreq_register_driver(&sc520_freq_driver);
+ err = cpufreq_register_driver(&sc520_freq_driver);
+ if (err)
+ iounmap(cpuctl);
+
+ return err;
}
}