fjes: Disable auto-loading
authorBen Hutchings <ben@decadent.org.uk>
Sat, 18 Mar 2017 20:47:58 +0000 (20:47 +0000)
committerYves-Alexis Perez <corsac@debian.org>
Wed, 21 Feb 2018 15:29:03 +0000 (15:29 +0000)
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.

Gbp-Pq: Topic debian
Gbp-Pq: Name fjes-disable-autoload.patch

drivers/net/fjes/fjes_main.c

index 7ea8ead4fd1c70a431ef3f8c96f3f3dccf23d18d..81b7f52ea3c3e28b420026e95960c9f7ee1affb5 100644 (file)
@@ -81,7 +81,7 @@ static const struct acpi_device_id fjes_acpi_ids[] = {
        {"PNP0C02", 0},
        {"", 0},
 };
-MODULE_DEVICE_TABLE(acpi, fjes_acpi_ids);
+/* MODULE_DEVICE_TABLE(acpi, fjes_acpi_ids); */
 
 static struct acpi_driver fjes_acpi_driver = {
        .name = DRV_NAME,