app/test: rework command registration
[dpdk.git] / app / test / test_prefetch.c
index f8615e2..80afaaf 100644 (file)
@@ -58,8 +58,4 @@ test_prefetch(void)
        return 0;
 }
 
-static struct test_command prefetch_cmd = {
-       .command = "prefetch_autotest",
-       .callback = test_prefetch,
-};
-REGISTER_TEST_COMMAND(prefetch_cmd);
+REGISTER_TEST_COMMAND(prefetch_autotest, test_prefetch);