Commit 70e15105 authored by Johannes Berg's avatar Johannes Berg Committed by Miri Korenblit
Browse files

wifi: iwlwifi: pcie: remove 'ent' argument from alloc



The alloc function iwl_trans_pcie_alloc() doesn't use the
'ent' argument, so remove it.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250502155404.0351805072bc.Id309b38817edc116bf9a921608a93b7734f21b05@changeid
parent d4bdea69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1422,7 +1422,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	/* make sure trans is the first element in iwl_cfg */
	BUILD_BUG_ON(offsetof(struct iwl_cfg, trans));

	iwl_trans = iwl_trans_pcie_alloc(pdev, ent, trans);
	iwl_trans = iwl_trans_pcie_alloc(pdev, trans);
	if (IS_ERR(iwl_trans))
		return PTR_ERR(iwl_trans);

+0 −1
Original line number Diff line number Diff line
@@ -553,7 +553,6 @@ iwl_trans_pcie_get_trans(struct iwl_trans_pcie *trans_pcie)
 */
struct iwl_trans
*iwl_trans_pcie_alloc(struct pci_dev *pdev,
		      const struct pci_device_id *ent,
		      const struct iwl_cfg_trans_params *cfg_trans);
void iwl_trans_pcie_free(struct iwl_trans *trans);
void iwl_trans_pcie_free_pnvm_dram_regions(struct iwl_dram_regions *dram_regions,
+3 −3
Original line number Diff line number Diff line
@@ -3796,8 +3796,8 @@ void iwl_trans_pcie_sync_nmi(struct iwl_trans *trans)
	iwl_trans_sync_nmi_with_addr(trans, inta_addr, sw_err_bit);
}

struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
			       const struct pci_device_id *ent,
struct iwl_trans *
iwl_trans_pcie_alloc(struct pci_dev *pdev,
		     const struct iwl_cfg_trans_params *cfg_trans)
{
	struct iwl_trans_pcie *trans_pcie, **priv;