static DEFINE_SPINLOCK(hardware_lock);
 
-static bool debug;
-
 /* SECTION: Prototypes */
 
 /* Communication with user-space */
        if (retval < 0)
                return retval;
        init_hardware();
-       pr_info("Installed.\n");
        return 0;
 }
 
        int retval;
 
        retval = platform_driver_register(&sir_ir_driver);
-       if (retval) {
-               pr_err("Platform driver register failed!\n");
-               return -ENODEV;
-       }
+       if (retval)
+               return retval;
 
        sir_ir_dev = platform_device_alloc("sir_ir", 0);
        if (!sir_ir_dev) {
-               pr_err("Platform device alloc failed!\n");
                retval = -ENOMEM;
                goto pdev_alloc_fail;
        }
 
        retval = platform_device_add(sir_ir_dev);
-       if (retval) {
-               pr_err("Platform device add failed!\n");
-               retval = -ENODEV;
+       if (retval)
                goto pdev_add_fail;
-       }
 
        return 0;
 
        drop_port();
        platform_device_unregister(sir_ir_dev);
        platform_driver_unregister(&sir_ir_driver);
-       pr_info("Uninstalled.\n");
 }
 
 module_init(sir_ir_init);
 
 module_param(threshold, int, 0444);
 MODULE_PARM_DESC(threshold, "space detection threshold (3)");
-
-module_param(debug, bool, 0644);
-MODULE_PARM_DESC(debug, "Enable debugging messages");