From: Eric Miao Date: Fri, 1 Jan 2010 07:43:28 +0000 (+0800) Subject: driver core: make platform_device_id table const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git driver core: make platform_device_id table const The platform ID table is normally const, force that by adding the attribute. Signed-off-by: Eric Miao Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 25e64b43e644..2c2d035bfb92 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -21,7 +21,7 @@ struct platform_device { u32 num_resources; struct resource * resource; - struct platform_device_id *id_entry; + const struct platform_device_id *id_entry; /* arch specific additions */ struct pdev_archdata archdata;