| .. | .. |
|---|
| 13 | 13 | #include <linux/cpu.h> |
|---|
| 14 | 14 | #include <linux/cpufreq.h> |
|---|
| 15 | 15 | #include <linux/delay.h> |
|---|
| 16 | +#include <linux/io.h> |
|---|
| 16 | 17 | #include <linux/module.h> |
|---|
| 17 | 18 | #include <linux/platform_device.h> |
|---|
| 18 | 19 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 80 | 81 | struct device *cpu_dev = get_cpu_device(policy->cpu); |
|---|
| 81 | 82 | struct cpufreq_frequency_table *freq_tbl; |
|---|
| 82 | 83 | unsigned int pll_freq, freq; |
|---|
| 83 | | - int steps, i, ret; |
|---|
| 84 | + int steps, i; |
|---|
| 84 | 85 | |
|---|
| 85 | 86 | pll_freq = clk_get_rate(cpufreq->pll_clk) / 1000; |
|---|
| 86 | 87 | |
|---|
| .. | .. |
|---|
| 102 | 103 | freq_tbl[i].frequency = CPUFREQ_TABLE_END; |
|---|
| 103 | 104 | |
|---|
| 104 | 105 | policy->clk = cpufreq->clk; |
|---|
| 105 | | - ret = cpufreq_generic_init(policy, freq_tbl, 0); |
|---|
| 106 | | - if (ret) |
|---|
| 107 | | - kfree(freq_tbl); |
|---|
| 106 | + cpufreq_generic_init(policy, freq_tbl, 0); |
|---|
| 108 | 107 | |
|---|
| 109 | | - return ret; |
|---|
| 108 | + return 0; |
|---|
| 110 | 109 | } |
|---|
| 111 | 110 | |
|---|
| 112 | 111 | static int ls1x_cpufreq_exit(struct cpufreq_policy *policy) |
|---|