mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
parent
f7d105ca77
commit
adec1ec2bb
2 changed files with 19 additions and 1 deletions
18
srcpkgs/bbswitch/patches/0003-kernel-5.18.patch
Normal file
18
srcpkgs/bbswitch/patches/0003-kernel-5.18.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- a/bbswitch.c
|
||||
+++ b/bbswitch.c
|
||||
@@ -264,10 +264,14 @@
|
||||
pci_disable_device(dis_dev);
|
||||
do {
|
||||
struct acpi_device *ad = NULL;
|
||||
- int r;
|
||||
+ int r = 0;
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
|
||||
+ ad = acpi_fetch_acpi_dev(dis_handle);
|
||||
+#else
|
||||
r = acpi_bus_get_device(dis_handle, &ad);
|
||||
+#endif
|
||||
if (r || !ad) {
|
||||
pr_warn("Cannot get ACPI device for PCI device\n");
|
||||
break;
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'bbswitch'
|
||||
pkgname=bbswitch
|
||||
version=0.8
|
||||
revision=4
|
||||
revision=5
|
||||
archs="x86_64*"
|
||||
depends="dkms"
|
||||
short_desc="Kernel module for disabling the nVidia GPU on Optimus laptops"
|
||||
|
|
Loading…
Add table
Reference in a new issue