| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALi M7101 PMU Computer Watchdog Timer driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 214 | 215 | return -EBUSY; |
|---|
| 215 | 216 | /* Good, fire up the show */ |
|---|
| 216 | 217 | wdt_startup(); |
|---|
| 217 | | - return nonseekable_open(inode, file); |
|---|
| 218 | + return stream_open(inode, file); |
|---|
| 218 | 219 | } |
|---|
| 219 | 220 | |
|---|
| 220 | 221 | static int fop_close(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 277 | 278 | return -EINVAL; |
|---|
| 278 | 279 | timeout = new_timeout; |
|---|
| 279 | 280 | wdt_keepalive(); |
|---|
| 280 | | - /* Fall through */ |
|---|
| 281 | 281 | } |
|---|
| 282 | + fallthrough; |
|---|
| 282 | 283 | case WDIOC_GETTIMEOUT: |
|---|
| 283 | 284 | return put_user(timeout, p); |
|---|
| 284 | 285 | default: |
|---|
| .. | .. |
|---|
| 293 | 294 | .open = fop_open, |
|---|
| 294 | 295 | .release = fop_close, |
|---|
| 295 | 296 | .unlocked_ioctl = fop_ioctl, |
|---|
| 297 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 296 | 298 | }; |
|---|
| 297 | 299 | |
|---|
| 298 | 300 | static struct miscdevice wdt_miscdev = { |
|---|