#include #include #include "pci.h" MODULE_LICENSE("GPL"); int harddoom_init(void) { int err = 0; printk(KERN_INFO "Initializing harddoom\n"); err = pci_init(); if (err < 0) { goto error; } return 0; error: return err; } void harddoom_cleanup(void) { printk(KERN_INFO "Removing harddoom\n"); pci_cleanup(); } module_init(harddoom_init); module_exit(harddoom_cleanup);