fix exported symbol for stmmac 6.12

This commit is contained in:
Bjarne von Horn 2025-06-25 11:52:01 +02:00
parent 5e060a5d7e
commit d75234c4e1
4 changed files with 4 additions and 5 deletions

View File

@ -329,5 +329,5 @@ enum rtc_control {
#define GMAC_MMC_RX_CSUM_OFFLOAD 0x208 #define GMAC_MMC_RX_CSUM_OFFLOAD 0x208
#define GMAC_EXTHASH_BASE 0x500 #define GMAC_EXTHASH_BASE 0x500
extern const struct stmmac_dma_ops dwmac1000_dma_ops; extern const struct stmmac_dma_ops ec_dwmac1000_dma_ops;
#endif /* __DWMAC1000_H__ */ #endif /* __DWMAC1000_H__ */

View File

@ -276,7 +276,7 @@ static void dwmac1000_rx_watchdog(struct stmmac_priv *priv,
writel(riwt, ioaddr + DMA_CHAN_RX_WATCHDOG(queue)); writel(riwt, ioaddr + DMA_CHAN_RX_WATCHDOG(queue));
} }
const struct stmmac_dma_ops dwmac1000_dma_ops = { const struct stmmac_dma_ops ec_dwmac1000_dma_ops = {
.reset = dwmac_dma_reset, .reset = dwmac_dma_reset,
.init_chan = dwmac1000_dma_init_channel, .init_chan = dwmac1000_dma_init_channel,
.init_rx_chan = dwmac1000_dma_init_rx, .init_rx_chan = dwmac1000_dma_init_rx,
@ -296,4 +296,3 @@ const struct stmmac_dma_ops dwmac1000_dma_ops = {
.get_hw_feature = dwmac1000_get_hw_feature, .get_hw_feature = dwmac1000_get_hw_feature,
.rx_watchdog = dwmac1000_rx_watchdog, .rx_watchdog = dwmac1000_rx_watchdog,
}; };
EXPORT_SYMBOL_GPL(dwmac1000_dma_ops);

View File

@ -148,7 +148,7 @@ static const struct stmmac_hwif_entry {
.mmc_off = MMC_GMAC3_X_OFFSET, .mmc_off = MMC_GMAC3_X_OFFSET,
}, },
.desc = NULL, .desc = NULL,
.dma = &dwmac1000_dma_ops, .dma = &ec_dwmac1000_dma_ops,
.mac = &dwmac1000_ops, .mac = &dwmac1000_ops,
.hwtimestamp = &stmmac_ptp, .hwtimestamp = &stmmac_ptp,
.mode = NULL, .mode = NULL,

View File

@ -686,7 +686,7 @@ struct stmmac_regs_off {
extern const struct stmmac_ops dwmac100_ops; extern const struct stmmac_ops dwmac100_ops;
extern const struct stmmac_dma_ops dwmac100_dma_ops; extern const struct stmmac_dma_ops dwmac100_dma_ops;
extern const struct stmmac_ops dwmac1000_ops; extern const struct stmmac_ops dwmac1000_ops;
extern const struct stmmac_dma_ops dwmac1000_dma_ops; extern const struct stmmac_dma_ops ec_dwmac1000_dma_ops;
extern const struct stmmac_ops dwmac4_ops; extern const struct stmmac_ops dwmac4_ops;
extern const struct stmmac_dma_ops dwmac4_dma_ops; extern const struct stmmac_dma_ops dwmac4_dma_ops;
extern const struct stmmac_ops dwmac410_ops; extern const struct stmmac_ops dwmac410_ops;