summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Szeptuch2021-10-25 23:31:30 +0200
committerMaciej Szeptuch2021-10-25 23:31:30 +0200
commit1848445a39c13964c601e1cbbc595218a7a12c3c (patch)
tree1ad607160a003872d783ab3a9a264343deb871c4
parent5c916975a52d151103683b5800fc3c621db786ae (diff)
downloadaur-1848445a39c13964c601e1cbbc595218a7a12c3c.tar.gz
fix build on linux 5.12+
-rw-r--r--PKGBUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d81e6701ad72..a572b15f327f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,6 +28,9 @@ b2sums=(
prepare() {
# Make the driver use local raspberrypi-firmware.h copy with new values, as they are not yet upstreamed
sed -i -e 's|<soc/bcm2835/raspberrypi-firmware.h>|"raspberrypi-firmware.h"|' rpi-poe-fan.c
+
+ # Fix for linux 5.12+
+ sed -i -e 's|thermal_cdev_update|//thermal_cdev_update|' rpi-poe-fan.c
}
package() {