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)
2121
2121
}
2122
2122
}
2123
2123
2124
- static void airoha_qdma_start_napi (struct airoha_eth * eth )
2124
+ static void airoha_qdma_start_napi (struct airoha_qdma * qdma )
2125
2125
{
2126
- struct airoha_qdma * qdma = & eth -> qdma [0 ];
2127
2126
int i ;
2128
2127
2129
2128
for (i = 0 ; i < ARRAY_SIZE (qdma -> q_tx_irq ); i ++ )
@@ -2692,7 +2691,9 @@ static int airoha_probe(struct platform_device *pdev)
2692
2691
if (err )
2693
2692
goto error ;
2694
2693
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
+
2696
2697
for_each_child_of_node (pdev -> dev .of_node , np ) {
2697
2698
if (!of_device_is_compatible (np , "airoha,eth-mac" ))
2698
2699
continue ;
You can’t perform that action at this time.
0 commit comments