From: Bhumika Goyal Date: Wed, 30 Aug 2017 09:05:25 +0000 (+0530) Subject: usb: host: make ehci_fsl_overrides const and __initconst X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b491f61ecb9668c9fd8d519cf25e8c46a30fb906;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) #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, };