From: Eric Miao Date: Fri, 1 Jan 2010 07:43:28 +0000 (+0800) Subject: driver core: make platform_device_id table const X-Git-Tag: accepted/tizen/common/20141203.182822~12451^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7;p=platform%2Fkernel%2Flinux-arm64.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 25e64b4..2c2d035 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;