Skip to content

Commit

Permalink
driver core: make platform_device_id table const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Miao authored and Greg Kroah-Hartman committed Mar 8, 2010
1 parent ecdf6ce commit 3d03ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/platform_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d03ba4

Please sign in to comment.