修改了watdog_adapter.c

Signed-off-by: yinshuqing <yinshuqing@huawei.com>
This commit is contained in:
yinshuqing
2021-08-12 14:29:59 +08:00
parent 66361225d9
commit 034823ad99
+6 -1
View File
@@ -20,6 +20,7 @@
#include <asm/ioctls.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/version.h>
#include "device_resource_if.h"
#include "hdf_base.h"
#include "hdf_log.h"
@@ -145,9 +146,13 @@ static struct watchdog_device *WdtCoreDataToWdd(void *wdCoreData)
* struct watchdog_device *wdd;
* ...
* }
*/
*/
struct WdtCoreDataHead {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,182)
struct device dev;
#else
struct kref kref;
#endif
struct cdev cdev;
struct watchdog_device *wdd;
};