Skip to content

Commit

Permalink
i2c: ensure termination of *_device_id tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thomasmey authored and Wolfram Sang committed Oct 5, 2017
1 parent cb09d94 commit a91aee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-sprd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a91aee5

Please sign in to comment.