Searched refs:lp_class (Results 1 – 1 of 1) sorted by relevance
148 static struct class *lp_class; variable936 device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL, in lp_register()1008 device_destroy(lp_class, MKDEV(LP_MAJOR, n)); in lp_detach()1053 lp_class = class_create(THIS_MODULE, "printer"); in lp_init()1054 if (IS_ERR(lp_class)) { in lp_init()1055 err = PTR_ERR(lp_class); in lp_init()1076 class_destroy(lp_class); in lp_init()1119 class_destroy(lp_class); in lp_cleanup_module()