mirror of https://github.com/OpenIPC/firmware.git
23 lines
803 B
Diff
23 lines
803 B
Diff
diff -drupN a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
|
|
--- a/drivers/pci/pcie/aspm.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/pci/pcie/aspm.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -786,7 +786,8 @@ void pci_disable_link_state(struct pci_d
|
|
}
|
|
EXPORT_SYMBOL(pci_disable_link_state);
|
|
|
|
-static int pcie_aspm_set_policy(const char *val, struct kernel_param *kp)
|
|
+static int pcie_aspm_set_policy(const char *val,
|
|
+ const struct kernel_param *kp)
|
|
{
|
|
int i;
|
|
struct pcie_link_state *link;
|
|
@@ -813,7 +814,7 @@ static int pcie_aspm_set_policy(const ch
|
|
return 0;
|
|
}
|
|
|
|
-static int pcie_aspm_get_policy(char *buffer, struct kernel_param *kp)
|
|
+static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp)
|
|
{
|
|
int i, cnt = 0;
|
|
for (i = 0; i < ARRAY_SIZE(policy_str); i++)
|