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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
10871c1360
commit
edc8c54bf4
@@ -321,7 +321,7 @@ static struct platform_driver exynos_ehci_driver = {
|
||||
.of_match_table = of_match_ptr(exynos_ehci_match),
|
||||
}
|
||||
};
|
||||
static const struct ehci_driver_overrides exynos_overrides __initdata = {
|
||||
static const struct ehci_driver_overrides exynos_overrides __initconst = {
|
||||
.extra_priv_size = sizeof(struct exynos_ehci_hcd),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user