| .. | .. |
|---|
| 14 | 14 | #include <asm/div64.h> |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | #ifndef FPGA_PLATFORM |
|---|
| 17 | +#ifdef CONFIG_PM_DEVFREQ |
|---|
| 17 | 18 | #include <../drivers/devfreq/governor.h> |
|---|
| 19 | +#endif |
|---|
| 18 | 20 | #endif |
|---|
| 19 | 21 | |
|---|
| 20 | 22 | #include "rknpu_drv.h" |
|---|
| .. | .. |
|---|
| 191 | 193 | return 0; |
|---|
| 192 | 194 | } |
|---|
| 193 | 195 | |
|---|
| 196 | +#ifdef CONFIG_PM_DEVFREQ |
|---|
| 194 | 197 | static ssize_t rknpu_freq_set(struct file *file, const char __user *ubuf, |
|---|
| 195 | 198 | size_t len, loff_t *offp) |
|---|
| 196 | 199 | { |
|---|
| .. | .. |
|---|
| 233 | 236 | |
|---|
| 234 | 237 | return len; |
|---|
| 235 | 238 | } |
|---|
| 239 | +#else |
|---|
| 240 | +static ssize_t rknpu_freq_set(struct file *file, const char __user *ubuf, |
|---|
| 241 | + size_t len, loff_t *offp) |
|---|
| 242 | +{ |
|---|
| 243 | + return -EFAULT; |
|---|
| 244 | +} |
|---|
| 245 | +#endif |
|---|
| 236 | 246 | |
|---|
| 237 | 247 | static int rknpu_volt_show(struct seq_file *m, void *data) |
|---|
| 238 | 248 | { |
|---|