usb: gadget: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:20:27 +0000 (20:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 16:27:03 +0000 (17:27 +0100)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/pxa27x_udc.c

index 6a855fc9bd84cf7716785e7ba62a60b7cb556882..f0ae143dab6d5c220d28705e7afbf61e513a401a 100644 (file)
@@ -2399,7 +2399,7 @@ static struct pxa_udc memory = {
 };
 
 #if defined(CONFIG_OF)
-static struct of_device_id udc_pxa_dt_ids[] = {
+static const struct of_device_id udc_pxa_dt_ids[] = {
        { .compatible = "marvell,pxa270-udc" },
        {}
 };