diff mbox

usb: host: xhci-plat: fix of_table.cocci warnings

Message ID 1452649078-22030-1-git-send-email-horms+renesas@verge.net.au (mailing list archive)
State Superseded
Delegated to: Simon Horman
Headers show

Commit Message

Simon Horman Jan. 13, 2016, 1:37 a.m. UTC
From: Julia Lawall <julia.lawall@lip6.fr>

Make sure (of/i2c/platform)_device_id tables are NULL terminated

Generated by: scripts/coccinelle/misc/of_table.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>

---
v3
* No change

v2
* New patch
---
 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Horman Jan. 13, 2016, 2:07 a.m. UTC | #1
On Wed, Jan 13, 2016 at 10:37:58AM +0900, Simon Horman wrote:
> From: Julia Lawall <julia.lawall@lip6.fr>
> 
> Make sure (of/i2c/platform)_device_id tables are NULL terminated
> 
> Generated by: scripts/coccinelle/misc/of_table.cocci
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>

Sorry, this was a miss-post.

I have reposted this patch in a 2-patch series.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 05d09d7547ea..cb2f080ab0a3 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -116,6 +116,7 @@  static const struct of_device_id usb_xhci_of_match[] = {
 		.compatible = "renesas,rcar-gen3-xhci",
 		.data = &xhci_plat_renesas_rcar_gen3,
 	},
+	{},
 };
 MODULE_DEVICE_TABLE(of, usb_xhci_of_match);
 #endif