summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2010-01-01 15:43:28 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-07 17:04:46 -0800
commit3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7 (patch)
tree0b458f290e55ba7972862ecd0b04606f0c05e372
parentecdf6ceb8cf4756bd4214bf9755755752b6015f5 (diff)
downloadblackbird-op-linux-3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7.tar.gz
blackbird-op-linux-3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7.zip
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.h2
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;
OpenPOWER on IntegriCloud