Commit 519a6510 authored by Uwe Kleine-König's avatar Uwe Kleine-König

macintosh/mediabay: add a const qualifier

This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

	drivers/macintosh/mediabay.c: In function 'media_bay_attach':
	drivers/macintosh/mediabay.c:589:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent efc9b736
...@@ -63,7 +63,7 @@ struct media_bay_info { ...@@ -63,7 +63,7 @@ struct media_bay_info {
int value_count; int value_count;
int timer; int timer;
struct macio_dev *mdev; struct macio_dev *mdev;
struct mb_ops* ops; const struct mb_ops* ops;
int index; int index;
int cached_gpio; int cached_gpio;
int sleeping; int sleeping;
......
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