summaryrefslogtreecommitdiff
path: root/samples/livepatch/livepatch-callbacks-demo.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-10-15 21:24:49 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-11-20 23:48:51 +0100
commit10809bb976648ac58194a629e3d7af99e7400297 (patch)
treedff24c4039d490ce213ee87009763200e830dac3 /samples/livepatch/livepatch-callbacks-demo.c
parent190b10367b0d311f68dc71e40b254fd4427affc2 (diff)
ACPI / bus: Leave modalias empty for devices which are not present
Most Bay and Cherry Trail devices use a generic DSDT with all possible peripheral devices present in the DSDT, with their _STA returning 0x00 or 0x0f based on AML variables which describe what is actually present on the board. Since ACPI device objects with a 0x00 status (not present) still get an entry under /sys/bus/acpi/devices, and those entry had an acpi:PNPID modalias, userspace would end up loading modules for non present hardware. This commit fixes this by leaving the modalias empty for non present devices. This results in 10 modules less being loaded with a generic distro kernel config on my Cherry Trail test-device (a GPD pocket). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'samples/livepatch/livepatch-callbacks-demo.c')
0 files changed, 0 insertions, 0 deletions