Lines Matching refs:major
121 static int major = PT_MAJOR; variable
156 module_param(major, int, 0);
607 printk("%s: %s version %s, major %d\n", name, name, PT_VERSION, major); in pt_detect()
977 err = register_chrdev(major, name, &pt_fops); in pt_init()
979 printk("pt_init: unable to get major number %d\n", major); in pt_init()
985 major = err; in pt_init()
994 device_create(pt_class, NULL, MKDEV(major, unit), NULL, in pt_init()
996 device_create(pt_class, NULL, MKDEV(major, unit + 128), in pt_init()
1002 unregister_chrdev(major, "pt"); in pt_init()
1012 device_destroy(pt_class, MKDEV(major, unit)); in pt_exit()
1013 device_destroy(pt_class, MKDEV(major, unit + 128)); in pt_exit()
1016 unregister_chrdev(major, name); in pt_exit()