]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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, 14 Jun 2017 13:07:50 +0000 (15:07 +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>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/intel/pinctrl-cherryview.c

index 9ff790174906e46962ec9b9fa00f4f04de14aa18..1d09097dec88c6892ebfa7efc1a136d02ebe1b59 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)