1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Always use the module system, rather than in an #ifdef.

This commit is contained in:
Peter Wemm 1999-05-09 15:57:52 +00:00
parent c0ccf7c6b6
commit 47154c8706
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46802

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: vesa.c,v 1.21 1999/03/29 15:10:56 yokota Exp $
* $Id: vesa.c,v 1.22 1999/03/31 15:27:00 yokota Exp $
*/
#include "vga.h"
@ -1093,8 +1093,6 @@ vesa_load(void)
return error;
}
#ifdef KLD_MODULE
static int
vesa_unload(void)
{
@ -1155,11 +1153,4 @@ static moduledata_t vesa_mod = {
DECLARE_MODULE(vesa, vesa_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
#else /* KLD_MODULE */
SYSINIT(vesa, SI_SUB_DRIVERS, SI_ORDER_MIDDLE,
(void (*)(void *))vesa_load, NULL);
#endif /* KLD_MODULE */
#endif /* (NVGA > 0 && VESA && VM86) || KLD_MODULE */