Forget to make linux-kernel CC'ed.
On Fri, Jan 1, 2010 at 3:43 PM, Eric Miao <[email protected]> wrote:
> The platform ID table is normally const, force that by adding the attribute.
>
> Signed-off-by: Eric Miao <[email protected]>
>
> diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
> index 71ff887..f5c1e7b 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;
>