From 748e4f3d702def1a4bff191e0cf93b6a05340f01 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:41:34 +0000 Subject: [PATCH] add gpio led uart --- kernel/drivers/watchdog/sc520_wdt.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/kernel/drivers/watchdog/sc520_wdt.c b/kernel/drivers/watchdog/sc520_wdt.c index 809ebca..ca65468 100644 --- a/kernel/drivers/watchdog/sc520_wdt.c +++ b/kernel/drivers/watchdog/sc520_wdt.c @@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * AMD Elan SC520 processor Watchdog Timer driver * * Based on acquirewdt.c by Alan Cox, * and sbc60xxwdt.c by Jakob Oestergaard <jakob@unthought.net> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. * * The authors do NOT admit liability nor provide warranty for * any of this software. This material is provided "AS-IS" in @@ -258,7 +254,7 @@ /* Good, fire up the show */ wdt_startup(); - return nonseekable_open(inode, file); + return stream_open(inode, file); } static int fop_close(struct inode *inode, struct file *file) @@ -324,8 +320,8 @@ return -EINVAL; wdt_keepalive(); - /* Fall through */ } + fallthrough; case WDIOC_GETTIMEOUT: return put_user(timeout, p); default: @@ -340,6 +336,7 @@ .open = fop_open, .release = fop_close, .unlocked_ioctl = fop_ioctl, + .compat_ioctl = compat_ptr_ioctl, }; static struct miscdevice wdt_miscdev = { -- Gitblit v1.6.2