summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-09-21 08:24:27 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-10-05 14:44:57 +0200
commita91aee523fb282f8868ba6b918f781679c3ea301 (patch)
tree9b282200601ce3eb7358686391c2f9fdb5461d09 /drivers
parenti2c: i801: Add support for Intel Cedar Fork (diff)
downloadlinux-a91aee523fb282f8868ba6b918f781679c3ea301.tar.xz
linux-a91aee523fb282f8868ba6b918f781679c3ea301.zip
i2c: ensure termination of *_device_id tables
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-sprd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c
index 22e08ae1704f..25fcc3c1e32b 100644
--- a/drivers/i2c/busses/i2c-sprd.c
+++ b/drivers/i2c/busses/i2c-sprd.c
@@ -627,6 +627,7 @@ static const struct dev_pm_ops sprd_i2c_pm_ops = {
static const struct of_device_id sprd_i2c_of_match[] = {
{ .compatible = "sprd,sc9860-i2c", },
+ {},
};
static struct platform_driver sprd_i2c_driver = {