diff --git a/examples/vinput.c b/examples/vinput.c index ff226e2..41baed4 100644 --- a/examples/vinput.c +++ b/examples/vinput.c @@ -401,7 +401,7 @@ static int __init vinput_init(void) return 0; failed_class: - class_unregister(&vinput_class); + unregister_chrdev(vinput_dev, DRIVER_NAME); failed_alloc: return err; }