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 <eric.y.miao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ecdf6ceb8c
commit
3d03ba4d1d
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ struct platform_device {
|
||||||
u32 num_resources;
|
u32 num_resources;
|
||||||
struct resource * resource;
|
struct resource * resource;
|
||||||
|
|
||||||
struct platform_device_id *id_entry;
|
const struct platform_device_id *id_entry;
|
||||||
|
|
||||||
/* arch specific additions */
|
/* arch specific additions */
|
||||||
struct pdev_archdata archdata;
|
struct pdev_archdata archdata;
|
||||||
|
|
Loading…
Reference in a new issue