]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: ehci-spear: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 18 Jun 2014 04:35:41 +0000 (13:35 +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/ehci-spear.c

index 1d59958ad0cefa8aeafb39848990b0142084d480..1355ff0946b960029b7850329c4523663602d711 100644 (file)
@@ -150,7 +150,7 @@ static int spear_ehci_hcd_drv_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id spear_ehci_id_table[] = {
+static const struct of_device_id spear_ehci_id_table[] = {
        { .compatible = "st,spear600-ehci", },
        { },
 };