diff options
-rw-r--r-- | drivers/net/xilinx_emaclite.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index dc22782633a5..83a044dbd1d7 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c | |||
@@ -134,18 +134,15 @@ static void xemaclite_enable_interrupts(struct net_local *drvdata) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | /* Enable the Rx interrupts for the first buffer */ | 136 | /* Enable the Rx interrupts for the first buffer */ |
137 | reg_data = in_be32(drvdata->base_addr + XEL_RSR_OFFSET); | ||
138 | out_be32(drvdata->base_addr + XEL_RSR_OFFSET, | 137 | out_be32(drvdata->base_addr + XEL_RSR_OFFSET, |
139 | reg_data | XEL_RSR_RECV_IE_MASK); | 138 | XEL_RSR_RECV_IE_MASK); |
140 | 139 | ||
141 | /* Enable the Rx interrupts for the second Buffer if | 140 | /* Enable the Rx interrupts for the second Buffer if |
142 | * configured in HW */ | 141 | * configured in HW */ |
143 | if (drvdata->rx_ping_pong != 0) { | 142 | if (drvdata->rx_ping_pong != 0) { |
144 | reg_data = in_be32(drvdata->base_addr + XEL_BUFFER_OFFSET + | ||
145 | XEL_RSR_OFFSET); | ||
146 | out_be32(drvdata->base_addr + XEL_BUFFER_OFFSET + | 143 | out_be32(drvdata->base_addr + XEL_BUFFER_OFFSET + |
147 | XEL_RSR_OFFSET, | 144 | XEL_RSR_OFFSET, |
148 | reg_data | XEL_RSR_RECV_IE_MASK); | 145 | XEL_RSR_RECV_IE_MASK); |
149 | } | 146 | } |
150 | 147 | ||
151 | /* Enable the Global Interrupt Enable */ | 148 | /* Enable the Global Interrupt Enable */ |