As nothing should be writing to the clocksource name string, make the
clocksource name pointer const.  Build-tested on ARM Versatile Express.

Cc: Alessandro Rubini <rub...@unipv.it>
Cc: Colin Cross <ccr...@android.com>
Cc: Eric Miao <eric.y.m...@gmail.com>
Cc: Erik Gilling <konk...@android.com>
Cc: "Hans J. Koch" <h...@hansjkoch.de>
Cc: Imre Kaloz <ka...@openwrt.org>
Cc: Krzysztof Halasa <k...@pm.waw.pl>
Cc: Kukjin Kim <kgene....@samsung.com>
Cc: Lennert Buytenhek <ker...@wantstofly.org>
Cc: Linus Walleij <linus.wall...@stericsson.com>
Cc: linux-omap@vger.kernel.org
Cc: Nicolas Pitre <n...@fluxnic.net>
Cc: Olof Johansson <o...@lixom.net>
Cc: Sascha Hauer <ker...@pengutronix.de>
Cc: Tony Lindgren <t...@atomide.com>
Cc: Viresh Kumar <viresh.ku...@st.com>
Cc: Wan ZongShun <mcuos....@gmail.com>
Signed-off-by: Russell King <rmk+ker...@arm.linux.org.uk>
---
 include/linux/clocksource.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index c37b21a..94c1f38 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -161,7 +161,7 @@ struct clocksource {
        /*
         * First part of structure is read mostly
         */
-       char *name;
+       const char *name;
        struct list_head list;
        int rating;
        cycle_t (*read)(struct clocksource *cs);
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to