summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/simplemodule/simple.c
blob: e091f68990d3577aad24794c6f869605bd601705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <linux/init.h>
#include <linux/module.h>

static int simple_hello(void)
{
	printk(KERN_ERR "called %s\n", __func__);
	return 0;
}

static void simple_goodbye(void)
{
	printk(KERN_ERR "called %s\n", __func__);
}

module_init(simple_hello);
module_exit(simple_goodbye);

MODULE_AUTHOR("John Ogness <john.ogness@linutronix.de>");
MODULE_DESCRIPTION("simple");
MODULE_LICENSE("GPL v2");
MODULE_VERSION("12345.54321");