[qca-nss-drv] fix compilation error in fsm9010

The change I8187eebc98346c9b3148b1c47d1d4df5e29e5ec1 has
introduced compilation errors in fsm9010 platform.
Adapt the changes to fsm9010 HAL layer too.

Change-Id: Idb8d8153c72bbe25cd07221f155456dec1cdc8ab
Signed-off-by: Arunkumar T <athand@codeaurora.org>
diff --git a/nss_hal/fsm9010/nss_hal_pvt.c b/nss_hal/fsm9010/nss_hal_pvt.c
index dbace32..acb80e2 100644
--- a/nss_hal/fsm9010/nss_hal_pvt.c
+++ b/nss_hal/fsm9010/nss_hal_pvt.c
@@ -258,26 +258,27 @@
 }
 
 /*
- * __nss_hal_request_irq_for_queue()
+ * __nss_hal_request_irq()
  */
-static int __nss_hal_request_irq_for_queue(struct nss_ctx_instance *nss_ctx, struct nss_platform_data *npd, int qnum)
+static int __nss_hal_request_irq(struct nss_ctx_instance *nss_ctx, struct nss_platform_data *npd, int irq_num)
 {
-	struct int_ctx_instance *int_ctx = &nss_ctx->int_ctx[qnum];
+	struct int_ctx_instance *int_ctx = &nss_ctx->int_ctx[irq_num];
 	int err;
 
-	if (qnum == 1) {
+	if (irq_num == 1) {
 		int_ctx->shift_factor = 15;
-		err = request_irq(npd->irq[qnum], nss_hal_handle_irq, 0, "nss_queue1", int_ctx);
+		err = request_irq(npd->irq[irq_num], nss_hal_handle_irq, 0, "nss_queue1", int_ctx);
 	} else {
 		int_ctx->shift_factor = 0;
-		err = request_irq(npd->irq[qnum], nss_hal_handle_irq, 0, "nss", int_ctx);
+		err = request_irq(npd->irq[irq_num], nss_hal_handle_irq, 0, "nss", int_ctx);
 	}
 	if (err) {
-		nss_warning("%p: IRQ%d request failed", nss_ctx, npd->irq[qnum]);
+		nss_warning("%p: IRQ%d request failed", nss_ctx, npd->irq[irq_num]);
 		return err;
 	}
 
-	int_ctx->irq[0] = npd->irq[qnum];
+	int_ctx->irq = npd->irq[irq_num];
+	netif_napi_add(int_ctx->ndev, &int_ctx->napi, nss_core_handle_napi, 64);
 	return 0;
 }
 
@@ -291,7 +292,7 @@
 	.firmware_load = __nss_hal_firmware_load,
 	.debug_enable = __nss_hal_debug_enable,
 	.of_get_pdata = __nss_hal_of_get_pdata,
-	.request_irq_for_queue = __nss_hal_request_irq_for_queue,
+	.request_irq = __nss_hal_request_irq,
 	.send_interrupt = __nss_hal_send_interrupt,
 	.enable_interrupt = __nss_hal_enable_interrupt,
 	.disable_interrupt = __nss_hal_disable_interrupt,