usb: host: xhci-plat: fix of_table.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Thu, 18 Feb 2016 15:55:50 +0000 (17:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Mar 2016 03:44:06 +0000 (19:44 -0800)
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>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c

index 3aede6eb9637bfd95357526d150ed4f3abe7010b..5c15e9bc5f7a418e2c56645a2a753e659d20167a 100644 (file)
@@ -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