> +static long at91_wdt_ioctl(struct file *file, unsigned int cmd,
No locking.. so you could get two set timeout calls in parallel. Probably
you need a simple mutex in at91_wdt_settimeout();
At the moment those two are safe. When the open lock_kernel
goes away it will be possible to get
misc_register
open
ioctl
wdt_settimout()
So you may want to swap those two around (and disable the timer if the
register fails ?), or lock the open against the register routine.
Otherwise looks good.
Alan
--