summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-omap.c
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2016-04-27 19:28:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-28 21:35:36 +0200
commitedc8c54bf454e6ba4f4631db1603f2297e4d4b67 (patch)
tree0f0dffb37de200550a0fce4215ba9987c98f9af3 /drivers/usb/host/ehci-omap.c
parentusb: devio: declare usbdev_vm_ops as static (diff)
downloadlinux-edc8c54bf454e6ba4f4631db1603f2297e4d4b67.tar.xz
linux-edc8c54bf454e6ba4f4631db1603f2297e4d4b67.zip
usb/host/: const data must use __initconst not __initdata
Init data marked const should be annotated with __initconst for correctness and not __initdata. This also fixes LTO builds that otherwise fail with section mismatch errors. Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
-rw-r--r--drivers/usb/host/ehci-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index a24720beb39d..94ea9fff13e6 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -86,7 +86,7 @@ static inline u32 ehci_read(void __iomem *base, u32 reg)
static struct hc_driver __read_mostly ehci_omap_hc_driver;
-static const struct ehci_driver_overrides ehci_omap_overrides __initdata = {
+static const struct ehci_driver_overrides ehci_omap_overrides __initconst = {
.extra_priv_size = sizeof(struct omap_hcd),
};