File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
drivers/net/ethernet/mediatek Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1973,8 +1973,7 @@ static int airoha_qdma_hw_init(struct airoha_qdma *qdma)
1973
1973
1974
1974
static irqreturn_t airoha_irq_handler (int irq , void * dev_instance )
1975
1975
{
1976
- struct airoha_eth * eth = dev_instance ;
1977
- struct airoha_qdma * qdma = & eth -> qdma [0 ];
1976
+ struct airoha_qdma * qdma = dev_instance ;
1978
1977
u32 intr [ARRAY_SIZE (qdma -> irqmask )];
1979
1978
int i ;
1980
1979
@@ -1984,7 +1983,7 @@ static irqreturn_t airoha_irq_handler(int irq, void *dev_instance)
1984
1983
airoha_qdma_wr (qdma , REG_INT_STATUS (i ), intr [i ]);
1985
1984
}
1986
1985
1987
- if (!test_bit (DEV_STATE_INITIALIZED , & eth -> state ))
1986
+ if (!test_bit (DEV_STATE_INITIALIZED , & qdma -> eth -> state ))
1988
1987
return IRQ_NONE ;
1989
1988
1990
1989
if (intr [1 ] & RX_DONE_INT_MASK ) {
@@ -2037,7 +2036,7 @@ static int airoha_qdma_init(struct platform_device *pdev,
2037
2036
return qdma -> irq ;
2038
2037
2039
2038
err = devm_request_irq (eth -> dev , qdma -> irq , airoha_irq_handler ,
2040
- IRQF_SHARED , KBUILD_MODNAME , eth );
2039
+ IRQF_SHARED , KBUILD_MODNAME , qdma );
2041
2040
if (err )
2042
2041
return err ;
2043
2042
You can’t perform that action at this time.
0 commit comments