ndtest: fix typo class_regster -> class_register
authorYi Zhang <yi.zhang@redhat.com>
Mon, 27 Nov 2023 04:00:26 +0000 (12:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2023 18:08:02 +0000 (18:08 +0000)
Fixes: dd6cad2dcb58 ("testing: nvdimm: make struct class structures constant")
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20231127040026.362729-1-yi.zhang@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/nvdimm/test/ndtest.c

index fd26189d53be8ea63d3a1c8203e2ebeef93f5a0e..b8419f460368a4338bc40d70f2f786cea8a993f6 100644 (file)
@@ -924,7 +924,7 @@ static __init int ndtest_init(void)
 
        nfit_test_setup(ndtest_resource_lookup, NULL);
 
-       rc = class_regster(&ndtest_dimm_class);
+       rc = class_register(&ndtest_dimm_class);
        if (rc)
                goto err_register;