File: fjes-disable-autoload.patch

package info (click to toggle)
linux 6.17.2-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,734,084 kB
  • sloc: ansic: 26,674,600; asm: 271,176; sh: 147,222; python: 75,910; makefile: 57,291; perl: 36,942; xml: 19,562; cpp: 5,894; yacc: 4,909; lex: 2,943; awk: 1,556; sed: 28; ruby: 25
file content (26 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Ben Hutchings <ben@decadent.org.uk>
Date: Sat, 18 Mar 2017 20:47:58 +0000
Subject: fjes: Disable auto-loading
Bug-Debian: https://bugs.debian.org/853976
Forwarded: no

fjes matches a generic ACPI device ID, and relies on its probe
function to distinguish whether that really corresponds to a supported
device.  Very few system will need the driver and it wastes memory on
all the other systems where the same device ID appears, so disable
auto-loading.

---
Index: linux/drivers/net/fjes/fjes_main.c
===================================================================
--- linux.orig/drivers/net/fjes/fjes_main.c
+++ linux/drivers/net/fjes/fjes_main.c
@@ -36,7 +36,7 @@ static const struct acpi_device_id fjes_
 	{ACPI_MOTHERBOARD_RESOURCE_HID, 0},
 	{"", 0},
 };
-MODULE_DEVICE_TABLE(acpi, fjes_acpi_ids);
+/* MODULE_DEVICE_TABLE(acpi, fjes_acpi_ids); */
 
 static bool is_extended_socket_device(struct acpi_device *device)
 {