kernel-6.6.30
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.18/bbswitch.c
|
||||
--- bbswitch-0.8/bbswitch.c 2022-05-24 20:26:22.184553495 +0000
|
||||
+++ bbswitch-0.8-5.18/bbswitch.c 2022-05-24 20:29:00.797008130 +0000
|
||||
@@ -264,10 +264,15 @@
|
||||
pci_disable_device(dis_dev);
|
||||
do {
|
||||
struct acpi_device *ad = NULL;
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
|
||||
+ ad = acpi_fetch_acpi_dev(dis_handle);
|
||||
+ if (!ad) {
|
||||
+#else
|
||||
int r;
|
||||
|
||||
r = acpi_bus_get_device(dis_handle, &ad);
|
||||
if (r || !ad) {
|
||||
+#endif
|
||||
pr_warn("Cannot get ACPI device for PCI device\n");
|
||||
break;
|
||||
}
|
||||
@@ -13,18 +13,19 @@
|
||||
<Summary>Kernel module allowing to switch dedicated graphics card on Optimus laptops</Summary>
|
||||
<Description>kernel module allowing to switch dedicated graphics card on Optimus laptops</Description>
|
||||
<BuildDependencies>
|
||||
<Dependency version="5.15.158">kernel-module-headers</Dependency>
|
||||
<Dependency version="6.6.30">kernel-module-headers</Dependency>
|
||||
</BuildDependencies>
|
||||
<Archive sha1sum="e282ee682d794e3962baa4dead01917c42571e78" type="targz">https://github.com/Bumblebee-Project/bbswitch/archive/v0.8.tar.gz</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">0001-proc_ops-struct.patch</Patch>
|
||||
<Patch level="1">0002-kernel-5.7.patch</Patch>
|
||||
<Patch level="1">0003-kernel-5.18.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
<Package>
|
||||
<Name>module-bbswitch</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency version="5.15.158">kernel</Dependency>
|
||||
<Dependency version="6.6.30">kernel</Dependency>
|
||||
<Dependency release="current">bbswitch-common</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
|
||||
Reference in New Issue
Block a user