Revisions for untitled paste

View the changes made to this paste.

unlisted ⁨1⁩ ⁨file⁩ 2021-08-10 13:17:20 UTC

no_efi.diff

@@ -0,0 +1,18 @@

+diff --git a/drivers/input/keyboard/applespi.c b/drivers/input/keyboard/applespi.c
+index 0c1853ff97cf..3c8535350396 100644
+--- a/drivers/input/keyboard/applespi.c
++++ b/drivers/input/keyboard/applespi.c
+@@ -1718,7 +1718,13 @@ static void applespi_save_bl_level(struct applespi_data *applespi,
+        unsigned long efi_data_len;
+        u16 efi_data;
+        int sts;
++#endif
+
++       if (applespi->spi->dev.of_node) {
++               return;
++       }
++
++#ifdef CONFIG_EFI
+        /* Save keyboard backlight level */
+        efi_guid = EFI_BL_LEVEL_GUID;
+        efi_data = (u16)level;