LP_MAJOR
device_destroy(&lp_class, MKDEV(LP_MAJOR, n));
if (register_chrdev(LP_MAJOR, "lp", &lp_fops)) {
printk(KERN_ERR "lp: unable to get major %d\n", LP_MAJOR);
unregister_chrdev(LP_MAJOR, "lp");
unregister_chrdev(LP_MAJOR, "lp");
MODULE_ALIAS_CHARDEV_MAJOR(LP_MAJOR);
device_create(&lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL,