diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/hdpuftrs/hdpu_cpustate.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c index b16742c7c69d..32f65a3e07ce 100644 --- a/drivers/misc/hdpuftrs/hdpu_cpustate.c +++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c | |||
@@ -170,21 +170,18 @@ static struct platform_driver hdpu_cpustate_driver = { | |||
170 | * The various file operations we support. | 170 | * The various file operations we support. |
171 | */ | 171 | */ |
172 | static const struct file_operations cpustate_fops = { | 172 | static const struct file_operations cpustate_fops = { |
173 | owner: THIS_MODULE, | 173 | .owner = THIS_MODULE, |
174 | open: cpustate_open, | 174 | .open = cpustate_open, |
175 | release: cpustate_release, | 175 | .release = cpustate_release, |
176 | read: cpustate_read, | 176 | .read = cpustate_read, |
177 | write: cpustate_write, | 177 | .write = cpustate_write, |
178 | fasync: NULL, | 178 | .llseek = no_llseek, |
179 | poll: NULL, | ||
180 | ioctl: NULL, | ||
181 | llseek: no_llseek, | ||
182 | }; | 179 | }; |
183 | 180 | ||
184 | static struct miscdevice cpustate_dev = { | 181 | static struct miscdevice cpustate_dev = { |
185 | MISC_DYNAMIC_MINOR, | 182 | .minor = MISC_DYNAMIC_MINOR, |
186 | "sky_cpustate", | 183 | .name = "sky_cpustate", |
187 | &cpustate_fops, | 184 | .fops = &cpustate_fops, |
188 | }; | 185 | }; |
189 | 186 | ||
190 | static int hdpu_cpustate_probe(struct platform_device *pdev) | 187 | static int hdpu_cpustate_probe(struct platform_device *pdev) |