Commit 7937fd32 authored by Johannes Berg's avatar Johannes Berg Committed by Kalle Valo
Browse files

iwlwifi: mvm: fix non-ACPI function



The code now compiles without ACPI, but there's a warning since
iwl_mvm_get_ppag_table() isn't used, and iwl_mvm_ppag_init() must
not unconditionally fail but return success instead.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent bfc3e9fd
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -896,11 +896,6 @@ static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm)
	return 0;
}

static int iwl_mvm_get_ppag_table(struct iwl_mvm *mvm)
{
	return -ENOENT;
}

int iwl_mvm_ppag_send_cmd(struct iwl_mvm *mvm)
{
	return -ENOENT;
@@ -908,7 +903,7 @@ int iwl_mvm_ppag_send_cmd(struct iwl_mvm *mvm)

static int iwl_mvm_ppag_init(struct iwl_mvm *mvm)
{
	return -ENOENT;
	return 0;
}
#endif /* CONFIG_ACPI */