Re: [patch] 2.4.2 Advantech WDT driver

From: Marek Michalkiewicz (marekm@amelek.gda.pl)
Date: Sat Mar 03 2001 - 08:38:18 EST


> Why is lock_kernel necessary?

Well, it is there in 2.4.2 acquirewdt.c (which this driver is based on -
really only minimal changes, the hardware is only slightly different).
I can remove it if you tell me it's really not necessary.

> > + spin_lock_init(&advwdt_lock);
> > + misc_register(&advwdt_miscdev);
>
> check return code for error

Again, acquirewdt.c doesn't do it with the misc_register, request_region
and register_reboot_notifier calls. (Should it? Cc: Alan Cox)

Thanks,
Marek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:14 EST