diff options
author | Breno Leitao <leitao@debian.org> | 2024-03-19 10:26:19 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-03-21 17:09:25 +0200 |
commit | 61cdb09ff760dd32439cde1200a1a8bd208807cd (patch) | |
tree | 16f62c86fee566c1cde4fe7b7ae56d5807f00762 /drivers/net/wireless/intel/iwlwifi/fw | |
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/20240229225910.79e224cf@kernel.org/
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240319172634.894327-1-leitao@debian.org
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw')
0 files changed, 0 insertions, 0 deletions