Commit 831fad2f authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarVikram Dhillon <dhillonv10@gmail.com>
Acked-by: default avatarEric Miao <eric.y.miao@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 52cf25d0
...@@ -636,7 +636,7 @@ static int platform_uevent(struct device *dev, struct kobj_uevent_env *env) ...@@ -636,7 +636,7 @@ static int platform_uevent(struct device *dev, struct kobj_uevent_env *env)
} }
static const struct platform_device_id *platform_match_id( static const struct platform_device_id *platform_match_id(
struct platform_device_id *id, const struct platform_device_id *id,
struct platform_device *pdev) struct platform_device *pdev)
{ {
while (id->name[0]) { while (id->name[0]) {
......
...@@ -62,7 +62,7 @@ struct platform_driver { ...@@ -62,7 +62,7 @@ struct platform_driver {
int (*suspend)(struct platform_device *, pm_message_t state); int (*suspend)(struct platform_device *, pm_message_t state);
int (*resume)(struct platform_device *); int (*resume)(struct platform_device *);
struct device_driver driver; 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 *); extern int platform_driver_register(struct platform_driver *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment