[qca-nss-drv] Added subsys dp register/unregister funcs
Change-Id: I5efa1e451930c668f9b52df5019d883560a8eae1
Signed-off-by: Jackson Bockus <jbockus@codeaurora.org>
diff --git a/nss_tstamp.c b/nss_tstamp.c
index ba04b35..d4138b7 100644
--- a/nss_tstamp.c
+++ b/nss_tstamp.c
@@ -261,10 +261,8 @@
struct nss_ctx_instance *nss_ctx;
nss_ctx = &nss_top_main.nss[nss_top_main.tstamp_handler_id];
- nss_ctx->subsys_dp_register[NSS_TSTAMP_INTERFACE].cb = nss_tstamp_buf_receive;
- nss_ctx->subsys_dp_register[NSS_TSTAMP_INTERFACE].app_data = NULL;
- nss_ctx->subsys_dp_register[NSS_TSTAMP_INTERFACE].ndev = ndev;
- nss_ctx->subsys_dp_register[NSS_TSTAMP_INTERFACE].features = features;
+
+ nss_core_register_subsys_dp(nss_ctx, NSS_TSTAMP_INTERFACE, nss_tstamp_buf_receive, NULL, NULL, ndev, features);
}
/*
@@ -329,4 +327,3 @@
return NSS_TX_SUCCESS;
}
EXPORT_SYMBOL(nss_tstamp_tx_buf);
-