aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-05-21 15:57:39 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 02:56:55 -0400
commit519a6510981a98c199828df24d5d3619f6394985 (patch)
treee11dd01c3d92f5dd520b0b49aa70f1a4ff376ec6 /drivers/macintosh
parentefc9b736c4477df7ff3ce403bca66846d21458d5 (diff)
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: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/mediabay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c
index 831d7517c759..54bf584f9601 100644
--- a/drivers/macintosh/mediabay.c
+++ b/drivers/macintosh/mediabay.c
@@ -63,7 +63,7 @@ struct media_bay_info {
63 int value_count; 63 int value_count;
64 int timer; 64 int timer;
65 struct macio_dev *mdev; 65 struct macio_dev *mdev;
66 struct mb_ops* ops; 66 const struct mb_ops* ops;
67 int index; 67 int index;
68 int cached_gpio; 68 int cached_gpio;
69 int sleeping; 69 int sleeping;