summaryrefslogtreecommitdiffstats
path: root/skull/skull_clean.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-11-27 07:49:17 +0100
committerJavier Martinez Canillas <martinez.javier@gmail.com>2010-11-27 07:49:17 +0100
commitab121f379a3cff458c90e6f480ba4bb68c8733dd (patch)
treea9851af109ee83646d108bc247d03b131461b764 /skull/skull_clean.c
downloadldd3-ab121f379a3cff458c90e6f480ba4bb68c8733dd.tar.gz
Linux Device Drivers 3 examples
Diffstat (limited to 'skull/skull_clean.c')
-rw-r--r--skull/skull_clean.c22
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);
+
+
+
+