Searched refs:lp_class (Results 1 – 1 of 1) sorted by relevance
147 static struct class *lp_class; variable881 device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL, in lp_register()980 lp_class = class_create(THIS_MODULE, "printer"); in lp_init()981 if (IS_ERR(lp_class)) { in lp_init()982 err = PTR_ERR(lp_class); in lp_init()1003 class_destroy(lp_class); in lp_init()1052 device_destroy(lp_class, MKDEV(LP_MAJOR, offset)); in lp_cleanup_module()1054 class_destroy(lp_class); in lp_cleanup_module()