USB: ehci-tegra: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 18 Jun 2014 04:37:24 +0000 (13:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:13:03 +0000 (16:13 -0700)
Make of_device_id array const, because all OF functions handle
it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c

index 6fdcb8ad22968865c8287830f86d27a4d3f316cc..c303371f67bc3e5b9d9c0ea9d0f1c1d785ca2d8d 100644 (file)
@@ -326,7 +326,7 @@ static const struct tegra_ehci_soc_config tegra20_soc_config = {
        .has_hostpc = false,
 };
 
-static struct of_device_id tegra_ehci_of_match[] = {
+static const struct of_device_id tegra_ehci_of_match[] = {
        { .compatible = "nvidia,tegra30-ehci", .data = &tegra30_soc_config },
        { .compatible = "nvidia,tegra20-ehci", .data = &tegra20_soc_config },
        { },