change cpu_is_phytium to cpu_is_ft2004 in ft2004_freq driver
This commit is contained in:
parent
ab172a0575
commit
1527815c1e
|
@ -153,12 +153,12 @@ static struct cpufreq_driver ft2004_freq_driver = {
|
|||
.attr = cpufreq_generic_attr,
|
||||
};
|
||||
|
||||
extern bool cpu_is_phytium(void);
|
||||
extern bool cpu_is_ft2004(void);
|
||||
static int __init ft2004_freq_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (!cpu_is_phytium()) {
|
||||
if (!cpu_is_ft2004()) {
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ static void __exit ft2004_freq_exit(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!cpu_is_phytium()) {
|
||||
if (!cpu_is_ft2004()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user