|
@@ -1369,9 +1369,6 @@ static int xgbe_close(struct net_device *netdev)
|
|
|
/* Free the ring descriptors and buffers */
|
|
|
desc_if->free_ring_resources(pdata);
|
|
|
|
|
|
- /* Free the channel and ring structures */
|
|
|
- xgbe_free_channels(pdata);
|
|
|
-
|
|
|
/* Release the interrupts */
|
|
|
devm_free_irq(pdata->dev, pdata->dev_irq, pdata);
|
|
|
if (pdata->per_channel_irq) {
|
|
@@ -1380,6 +1377,9 @@ static int xgbe_close(struct net_device *netdev)
|
|
|
devm_free_irq(pdata->dev, channel->dma_irq, channel);
|
|
|
}
|
|
|
|
|
|
+ /* Free the channel and ring structures */
|
|
|
+ xgbe_free_channels(pdata);
|
|
|
+
|
|
|
/* Disable the clocks */
|
|
|
clk_disable_unprepare(pdata->ptpclk);
|
|
|
clk_disable_unprepare(pdata->sysclk);
|