aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-07-13 12:24:26 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 02:57:43 -0400
commit306e352ab1b59335c56657f4d59cbe8edc040a8c (patch)
tree5a0c6be0c3d224667cf74e6a0b6b61e02a1f9897 /drivers/macintosh
parent1d10a65fde071fae939387348c309bd6c237d36e (diff)
macintosh/mediabay: make data used as *of_device_id.data const
Since of_device_id.data is declared as a pointer to const data a few more consts can be added in this driver. [ukl: split Arnd's patch by driver] Signed-off-by: Arnd Bergmann <arnd@arndb.de> 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c
index 54bf584f9601..3f8d032f180f 100644
--- a/drivers/macintosh/mediabay.c
+++ b/drivers/macintosh/mediabay.c
@@ -669,7 +669,7 @@ static int media_bay_resume(struct macio_dev *mdev)
669 669
670/* Definitions of "ops" structures. 670/* Definitions of "ops" structures.
671 */ 671 */
672static struct mb_ops ohare_mb_ops = { 672static const struct mb_ops ohare_mb_ops = {
673 .name = "Ohare", 673 .name = "Ohare",
674 .content = ohare_mb_content, 674 .content = ohare_mb_content,
675 .power = ohare_mb_power, 675 .power = ohare_mb_power,
@@ -678,7 +678,7 @@ static struct mb_ops ohare_mb_ops = {
678 .un_reset_ide = ohare_mb_un_reset_ide, 678 .un_reset_ide = ohare_mb_un_reset_ide,
679}; 679};
680 680
681static struct mb_ops heathrow_mb_ops = { 681static const struct mb_ops heathrow_mb_ops = {
682 .name = "Heathrow", 682 .name = "Heathrow",
683 .content = heathrow_mb_content, 683 .content = heathrow_mb_content,
684 .power = heathrow_mb_power, 684 .power = heathrow_mb_power,
@@ -687,7 +687,7 @@ static struct mb_ops heathrow_mb_ops = {
687 .un_reset_ide = heathrow_mb_un_reset_ide, 687 .un_reset_ide = heathrow_mb_un_reset_ide,
688}; 688};
689 689
690static struct mb_ops keylargo_mb_ops = { 690static const struct mb_ops keylargo_mb_ops = {
691 .name = "KeyLargo", 691 .name = "KeyLargo",
692 .init = keylargo_mb_init, 692 .init = keylargo_mb_init,
693 .content = keylargo_mb_content, 693 .content = keylargo_mb_content,