m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/harddoom_main.c
blob: 300c910895a27a6e7a0978ca6bca179914008a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <linux/module.h>
#include <linux/kernel.h>

#include "char.h"
#include "pci.h"
#include "util.h"

MODULE_LICENSE("GPL");

int harddoom_init(void)
{
	int err = 0;

	ORFAIL(char_init(), error_char) ;
	ORFAIL(pci_init(), error_pci);

	return 0;

error_pci:
	char_cleanup();
error_char:
	return err;
}

void harddoom_cleanup(void)
{
	pci_cleanup();
	char_cleanup();
}

module_init(harddoom_init);
module_exit(harddoom_cleanup);