diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-01-01 10:43:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-08 04:04:46 +0300 |
commit | 3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7 (patch) | |
tree | 0b458f290e55ba7972862ecd0b04606f0c05e372 | |
parent | ecdf6ceb8cf4756bd4214bf9755755752b6015f5 (diff) | |
download | linux-3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7.tar.xz |
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>
-rw-r--r-- | include/linux/platform_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 25e64b43e644..2c2d035bfb92 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; |