aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2024-04-22 12:39:03 +0000
committerDavid S. Miller <[email protected]>2024-04-24 11:00:17 +0000
commitbca592ead82528b65fb028fbb71911359a642f16 (patch)
tree61fbf9624b710c41869130df385d666fe923d362 /drivers/net/ethernet/intel/ice/ice_main.c
parentwifi: ath10k: allocate dummy net_device dynamically (diff)
downloadkernel-bca592ead82528b65fb028fbb71911359a642f16.tar.gz
kernel-bca592ead82528b65fb028fbb71911359a642f16.zip
wifi: ath11k: allocate dummy net_device dynamically
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from struct ath11k_ext_irq_grp by converting it into a pointer. Then use the leverage alloc_netdev() to allocate the net_device object at ath11k_ahb_config_ext_irq() for ahb, and ath11k_pcic_ext_irq_config() for pcic. The free of the device occurs at ath11k_ahb_free_ext_irq() for the ahb case, and ath11k_pcic_free_ext_irq() for the pcic case. [1] https://lore.kernel.org/all/[email protected]/ Signed-off-by: Breno Leitao <[email protected]> Tested-by: Kalle Valo <[email protected]> Acked-by: Kalle Valo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions