File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
drivers/net/ethernet/mediatek Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2121,9 +2121,8 @@ static void airoha_hw_cleanup(struct airoha_qdma *qdma)
21212121 }
21222122}
21232123
2124- static void airoha_qdma_start_napi (struct airoha_eth * eth )
2124+ static void airoha_qdma_start_napi (struct airoha_qdma * qdma )
21252125{
2126- struct airoha_qdma * qdma = & eth -> qdma [0 ];
21272126 int i ;
21282127
21292128 for (i = 0 ; i < ARRAY_SIZE (qdma -> q_tx_irq ); i ++ )
@@ -2692,7 +2691,9 @@ static int airoha_probe(struct platform_device *pdev)
26922691 if (err )
26932692 goto error ;
26942693
2695- airoha_qdma_start_napi (eth );
2694+ for (i = 0 ; i < ARRAY_SIZE (eth -> qdma ); i ++ )
2695+ airoha_qdma_start_napi (& eth -> qdma [i ]);
2696+
26962697 for_each_child_of_node (pdev -> dev .of_node , np ) {
26972698 if (!of_device_is_compatible (np , "airoha,eth-mac" ))
26982699 continue ;
You can’t perform that action at this time.
0 commit comments