Lines Matching refs:chd_dec_major
365 adp->chd_dec_major = register_chrdev(0, CRYSTALHD_API_NAME,
367 if (adp->chd_dec_major < 0) {
369 rc = adp->chd_dec_major;
380 dev = device_create(crystalhd_class, NULL, MKDEV(adp->chd_dec_major, 0),
410 device_destroy(crystalhd_class, MKDEV(adp->chd_dec_major, 0));
423 if (adp->chd_dec_major > 0) {
425 device_destroy(crystalhd_class, MKDEV(adp->chd_dec_major, 0));
426 unregister_chrdev(adp->chd_dec_major, CRYSTALHD_API_NAME);
428 adp->chd_dec_major);
431 adp->chd_dec_major = 0;