Commit 6c583251 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[WATCHDOG] advantech compile fixes

parent af495c9f
......@@ -47,6 +47,7 @@
#include <linux/smp_lock.h>
static int advwdt_is_open;
static char adv_expect_close;
static spinlock_t advwdt_lock;
/*
......@@ -157,7 +158,7 @@ advwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
static int
advwdt_open(struct inode *inode, struct file *file)
{
if (minor(inode->i_rdev) = WATCHDOG_MINOR) {
if (minor(inode->i_rdev) == WATCHDOG_MINOR) {
spin_lock(&advwdt_lock);
if (advwdt_is_open) {
spin_unlock(&advwdt_lock);
......@@ -231,7 +232,7 @@ static struct miscdevice advwdt_miscdev = {
*/
static struct notifier_block advwdt_notifier = {
.self = advwdt_notify_sys,
.notifier_call = advwdt_notify_sys,
.next = NULL,
.priority = 0
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment