driver core: make platform_device_id table const
authorEric Miao <eric.y.miao@gmail.com>
Fri, 1 Jan 2010 07:43:28 +0000 (15:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:46 +0000 (17:04 -0800)
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>
include/linux/platform_device.h

index 25e64b43e644260d5b831ef6df556d87419f78e9..2c2d035bfb927799ad73e8f22e0845c976439bf3 100644 (file)
@@ -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;