Searched refs:hmcdrv_dev_class (Results 1 – 1 of 1) sorted by relevance
81 static struct class *hmcdrv_dev_class; /* device class pointer */ variable311 hmcdrv_dev_class = class_create(THIS_MODULE, HMCDRV_DEV_CLASS); in hmcdrv_dev_init()313 if (IS_ERR(hmcdrv_dev_class)) { in hmcdrv_dev_init()314 rc = PTR_ERR(hmcdrv_dev_class); in hmcdrv_dev_init()323 hmcdrv_dev_class->devnode = hmcdrv_dev_name; in hmcdrv_dev_init()325 dev = device_create(hmcdrv_dev_class, NULL, hmcdrv_dev_no, NULL, in hmcdrv_dev_init()331 class_destroy(hmcdrv_dev_class); in hmcdrv_dev_init()332 hmcdrv_dev_class = NULL; in hmcdrv_dev_init()359 if (!IS_ERR_OR_NULL(hmcdrv_dev_class)) { in hmcdrv_dev_exit()360 device_destroy(hmcdrv_dev_class, hmcdrv_dev_no); in hmcdrv_dev_exit()[all …]