aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Mrtvy <lukas.mrtvy@gmail.com>2018-07-11 10:22:27 +0200
committerJohn Crispin <john@phrozen.org>2018-08-08 15:37:10 +0200
commit7e03be7e2e32d0ac9b064b003c0403f864974e23 (patch)
tree58f60bd9a437634010284f6d0865b437b22499c6
parent8139438fc036fc0f5e2070373cc8caa9091f38bc (diff)
downloadupstream-7e03be7e2e32d0ac9b064b003c0403f864974e23.tar.gz
upstream-7e03be7e2e32d0ac9b064b003c0403f864974e23.tar.bz2
upstream-7e03be7e2e32d0ac9b064b003c0403f864974e23.zip
kernel: leds-apu2 remove boardname check
'In different versions of coreboot are different names of apu boardname. No need to check boardname to load module.' Signed-off-by: Lukas Mrtvy <lukas.mrtvy@gmail.com> (cherry picked from commit f21bcb4db8a12cef62e5698f0f711db8dde99db8)
-rw-r--r--package/kernel/leds-apu2/src/leds-apu2.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/package/kernel/leds-apu2/src/leds-apu2.c b/package/kernel/leds-apu2/src/leds-apu2.c
index 2fefa857cb..ff13b3cde1 100644
--- a/package/kernel/leds-apu2/src/leds-apu2.c
+++ b/package/kernel/leds-apu2/src/leds-apu2.c
@@ -331,18 +331,6 @@ static int __init gpio_apu2_init (void)
const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);
const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
- /* Match the device name/model */
- if (!board_name \
- || !board_vendor \
- || strcasecmp(board_vendor, "PC Engines") \
- || (strcasecmp(board_name, "apu2") \
- && strcasecmp(board_name, "apu3") \
- && strcasecmp(board_name, "PC Engines apu2") \
- && strcasecmp(board_name, "PC Engines apu3"))) {
- err = -ENODEV;
- goto exit;
- }
-
pr_info ("%s: load APU2/LED GPIO driver module\n", DEVNAME);
err = platform_driver_register (&gpio_apu2_driver);