driver core: class: remove module * from class_create()
[linux-block.git] / drivers / char / virtio_console.c
index d5ac4d955bc8ca5c3464a77bc73b818db534c65c..b65c809a4e978d41ba80bfab5b6fab1c5f9a2b7b 100644 (file)
@@ -2244,7 +2244,7 @@ static int __init virtio_console_init(void)
 {
        int err;
 
-       pdrvdata.class = class_create(THIS_MODULE, "virtio-ports");
+       pdrvdata.class = class_create("virtio-ports");
        if (IS_ERR(pdrvdata.class)) {
                err = PTR_ERR(pdrvdata.class);
                pr_err("Error %d creating virtio-ports class\n", err);