diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-11-27 07:49:17 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-11-27 07:49:17 +0100 |
commit | ab121f379a3cff458c90e6f480ba4bb68c8733dd (patch) | |
tree | a9851af109ee83646d108bc247d03b131461b764 /skull/skull_clean.c | |
download | ldd3-ab121f379a3cff458c90e6f480ba4bb68c8733dd.tar.gz |
Linux Device Drivers 3 examples
Diffstat (limited to 'skull/skull_clean.c')
-rw-r--r-- | skull/skull_clean.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/skull/skull_clean.c b/skull/skull_clean.c new file mode 100644 index 0000000..9d1e789 --- /dev/null +++ b/skull/skull_clean.c @@ -0,0 +1,22 @@ +#include <linux/config.h> +#include <linux/module.h> +#include <linux/version.h> + +#include <linux/ioport.h> + +void skull_release(unsigned int port, unsigned int range) +{ + release_region(port,range); +} + +void skull_cleanup(void) +{ + /* should put real values here ... */ + /* skull_release(0,0); */ +} + +module_exit(skull_cleanup); + + + + |