提交 3d03ba4d 编写于 作者: E Eric Miao 提交者: Greg Kroah-Hartman

driver core: make platform_device_id table const

The platform ID table is normally const, force that by adding the attribute.
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ecdf6ceb
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册