Skip to contentSkip to conversation

usb: host: make ehci_fsl_overrides const and __initconst

PATCH New Bhumika Goyal 1 participant 1 message Aug 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/host/ehci-fsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-fsl.c +1 -1
index 4a08b70..d025cc0 100644
@@ -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,
 };
Signature · 1 line
1.9.1