summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-01-26 09:35:00 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-08 02:04:49 +0100
commit831fad2f75f0d7bfc339de81173e7068a3c72276 (patch)
treebb566ec230d6bbc1c7ce942e8e1355c9876e24ea /include
parentDriver core: Constify struct sysfs_ops in struct kobj_type (diff)
downloadlinux-831fad2f75f0d7bfc339de81173e7068a3c72276.tar.xz
linux-831fad2f75f0d7bfc339de81173e7068a3c72276.zip
Driver core: make struct platform_driver.id_table const
This fixes a warning on several pxa based machines: arch/arm/mach-pxa/ssp.c:475: warning: initialization discards qualifiers from pointer target type Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Vikram Dhillon <dhillonv10@gmail.com> Acked-by: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-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 2c2d035bfb92..212da17d06af 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -62,7 +62,7 @@ struct platform_driver {
int (*suspend)(struct platform_device *, pm_message_t state);
int (*resume)(struct platform_device *);
struct device_driver driver;
- struct platform_device_id *id_table;
+ const struct platform_device_id *id_table;
};
extern int platform_driver_register(struct platform_driver *);