usb: host: make ehci_fsl_overrides const and __initconst
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 30 Aug 2017 09:05:25 +0000 (14:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:08:46 +0000 (18:08 +0200)
Make this structure const as it is not modified. And replace __initdata
with __initconst to avoid section conflict error.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c

index 4a08b70c81aa8f31b7baa1c1ea122416448a6c03..d025cc06dda7936a4a66996af95ded8996e2886d 100644 (file)
@@ -642,7 +642,7 @@ static int ehci_start_port_reset(struct usb_hcd *hcd, unsigned port)
 #define ehci_start_port_reset  NULL
 #endif /* CONFIG_USB_OTG */
 
-static struct ehci_driver_overrides ehci_fsl_overrides __initdata = {
+static const struct ehci_driver_overrides ehci_fsl_overrides __initconst = {
        .extra_priv_size = sizeof(struct ehci_fsl),
        .reset = ehci_fsl_setup,
 };