diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2016-04-27 20:28:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-28 22:35:36 +0300 |
commit | edc8c54bf454e6ba4f4631db1603f2297e4d4b67 (patch) | |
tree | 0f0dffb37de200550a0fce4215ba9987c98f9af3 /drivers/usb/host/ehci-msm.c | |
parent | 10871c13608a624562e082196148f1dc4e37005e (diff) | |
download | linux-edc8c54bf454e6ba4f4631db1603f2297e4d4b67.tar.xz |
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-msm.c')
-rw-r--r-- | drivers/usb/host/ehci-msm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 3e226ef6ca62..d3afc89d00f5 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -229,7 +229,7 @@ static struct platform_driver ehci_msm_driver = { }, }; -static const struct ehci_driver_overrides msm_overrides __initdata = { +static const struct ehci_driver_overrides msm_overrides __initconst = { .reset = ehci_msm_reset, }; |