USB: ohci-spear: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 18 Jun 2014 04:38:10 +0000 (13:38 +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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-spear.c

index 8b29a0c04c23b9958e9e21b91d73d8f35c944c8e..8d5876692e7ccaf08122ca766d259dfe32caad0e 100644 (file)
@@ -162,7 +162,7 @@ static int spear_ohci_hcd_drv_resume(struct platform_device *dev)
 }
 #endif
 
-static struct of_device_id spear_ohci_id_table[] = {
+static const struct of_device_id spear_ohci_id_table[] = {
        { .compatible = "st,spear600-ohci", },
        { },
 };