Subject: DVACT_ACTIVATE/DVACT_DEACTIVATE: proper use of EOPNOTSUPP
To: None <tech-kern@netbsd.org>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: tech-kern
Date: 09/24/2007 20:58:23
While reading the OpenBSD commit log for
sys/dev/pci/azalia.c, I noticed this:

 In a drivers activate() entry point, if on
 DVACT_DEACTIVATE it does something, then it MUST
 return zero on DVACT_ACTIVATE, not EOPNOTSUPP;
 this very popular bug has been cut and pasted a
 lot of times...

Does NetBSD follow the same convention?

Regards,

--Blair