diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-30 05:05:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-31 12:08:46 -0400 |
commit | b491f61ecb9668c9fd8d519cf25e8c46a30fb906 (patch) | |
tree | 09c1a217e9ac8719942a343e315d785873fe8eb8 | |
parent | c3d3ad68febacae8a98cb1e40af6c9337f7454a8 (diff) |
usb: host: make ehci_fsl_overrides const and __initconst
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>
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 4a08b70c81aa..d025cc06dda7 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c | |||
@@ -642,7 +642,7 @@ static int ehci_start_port_reset(struct usb_hcd *hcd, unsigned port) | |||
642 | #define ehci_start_port_reset NULL | 642 | #define ehci_start_port_reset NULL |
643 | #endif /* CONFIG_USB_OTG */ | 643 | #endif /* CONFIG_USB_OTG */ |
644 | 644 | ||
645 | static struct ehci_driver_overrides ehci_fsl_overrides __initdata = { | 645 | static const struct ehci_driver_overrides ehci_fsl_overrides __initconst = { |
646 | .extra_priv_size = sizeof(struct ehci_fsl), | 646 | .extra_priv_size = sizeof(struct ehci_fsl), |
647 | .reset = ehci_fsl_setup, | 647 | .reset = ehci_fsl_setup, |
648 | }; | 648 | }; |