Lines Matching refs:major
121 static int major = PT_MAJOR; variable
156 module_param(major, int, 0);
606 printk("%s: %s version %s, major %d\n", name, name, PT_VERSION, major); in pt_detect()
969 err = register_chrdev(major, name, &pt_fops); in pt_init()
971 printk("pt_init: unable to get major number %d\n", major); in pt_init()
977 major = err; in pt_init()
986 device_create(pt_class, NULL, MKDEV(major, unit), NULL, in pt_init()
988 device_create(pt_class, NULL, MKDEV(major, unit + 128), in pt_init()
994 unregister_chrdev(major, "pt"); in pt_init()
1004 device_destroy(pt_class, MKDEV(major, unit)); in pt_exit()
1005 device_destroy(pt_class, MKDEV(major, unit + 128)); in pt_exit()
1008 unregister_chrdev(major, name); in pt_exit()