Skip to content

Commit b698ab5

Browse files
yijiyangPaolo Abeni
authored andcommitted
net: stmmac: dwmac-qcom-ethqos: fix error array size
Correct member @num_por with size of right array @emac_v4_0_0_por for struct ethqos_emac_driver_data @emac_v4_0_0_data. Cc: [email protected] Fixes: 8c4d92e ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms") Signed-off-by: Yijie Yang <[email protected]> Reviewed-by: Bartosz Golaszewski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent d2d30a3 commit b698ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static const struct ethqos_emac_por emac_v4_0_0_por[] = {
272272

273273
static const struct ethqos_emac_driver_data emac_v4_0_0_data = {
274274
.por = emac_v4_0_0_por,
275-
.num_por = ARRAY_SIZE(emac_v3_0_0_por),
275+
.num_por = ARRAY_SIZE(emac_v4_0_0_por),
276276
.rgmii_config_loopback_en = false,
277277
.has_emac_ge_3 = true,
278278
.link_clk_name = "phyaux",

0 commit comments

Comments
 (0)