pinctrl: cherryview: Add terminate entry for dmi_system_id tables
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Apr 2017 06:22:05 +0000 (06:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jul 2017 13:01:05 +0000 (15:01 +0200)
commit a9de080bbcd5c4e213a3d7bbb1e314d60980e943 upstream.

Make sure dmi_system_id tables are NULL terminated.

Fixes: 703650278372 ("pinctrl: cherryview: Add a quirk to make Acer
Chromebook keyboard work again")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/intel/pinctrl-cherryview.c

index 007770facdebb0344e377ba5ef234223293ea152..0d34d8a4ab14a22d9f3aa34c7047ccfc9dc19f90 100644 (file)
@@ -1542,7 +1542,8 @@ static const struct dmi_system_id chv_no_valid_mask[] = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "Edgar"),
                        DMI_MATCH(DMI_BIOS_DATE, "05/21/2016"),
                },
-       }
+       },
+       {}
 };
 
 static int chv_gpio_probe(struct chv_pinctrl *pctrl, int irq)