/* Note, the pointer to be destroyed must have been created with a call to class_create().  */
void class_destroy(struct class *cls)
/* Note, the pointer to be destroyed must have been created with a call to class_create().  */
void class_destroy(struct class *cls)
{
	if ((cls == NULL) || (IS_ERR(cls)))
		return;
	class_unregister(cls);
}