projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb09d94
)
i2c: ensure termination of *_device_id tables
author
Thomas Meyer
<thomas@m3y3r.de>
Thu, 21 Sep 2017 06:24:27 +0000
(08:24 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 5 Oct 2017 12:44:57 +0000
(14:44 +0200)
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>
drivers/i2c/busses/i2c-sprd.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-sprd.c
b/drivers/i2c/busses/i2c-sprd.c
index
22e08ae
..
25fcc3c
100644
(file)
--- 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 = {