| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PIKA FPGA based Watchdog Timer |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 118 | 119 | |
|---|
| 119 | 120 | pikawdt_start(); |
|---|
| 120 | 121 | |
|---|
| 121 | | - return nonseekable_open(inode, file); |
|---|
| 122 | + return stream_open(inode, file); |
|---|
| 122 | 123 | } |
|---|
| 123 | 124 | |
|---|
| 124 | 125 | /* |
|---|
| .. | .. |
|---|
| 213 | 214 | .release = pikawdt_release, |
|---|
| 214 | 215 | .write = pikawdt_write, |
|---|
| 215 | 216 | .unlocked_ioctl = pikawdt_ioctl, |
|---|
| 217 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 216 | 218 | }; |
|---|
| 217 | 219 | |
|---|
| 218 | 220 | static struct miscdevice pikawdt_miscdev = { |
|---|
| .. | .. |
|---|
| 225 | 227 | { |
|---|
| 226 | 228 | struct device_node *np; |
|---|
| 227 | 229 | void __iomem *fpga; |
|---|
| 228 | | - static u32 post1; |
|---|
| 230 | + u32 post1; |
|---|
| 229 | 231 | int ret; |
|---|
| 230 | 232 | |
|---|
| 231 | 233 | np = of_find_compatible_node(NULL, NULL, "pika,fpga"); |
|---|