diff options
author | Breno Leitao <[email protected]> | 2024-03-19 10:26:19 -0700 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2024-03-21 17:09:25 +0200 |
commit | 61cdb09ff760dd32439cde1200a1a8bd208807cd (patch) | |
tree | 16f62c86fee566c1cde4fe7b7ae56d5807f00762 /drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c | |
parent | 2d5cde1143eca31c72547dfd589702c6b4a7e684 (diff) |
wifi: qtnfmac: 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 qtnf_bus by converting it
into a pointer. Then use the leverage alloc_netdev() to allocate the
net_device object at qtnf_pcie_probe(). The free of the device occurs at
qtnf_pcie_remove().
[1] https://lore.kernel.org/all/[email protected]/
Signed-off-by: Breno Leitao <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c')
0 files changed, 0 insertions, 0 deletions