Commit a1330228 authored by Jamie Iles's avatar Jamie Iles Committed by John Stultz

dw_apb_timer: constify clocksource name

The clocksource name should be const for correctness.

Cc: John Stultz <johnstul@us.ibm.com>
Signed-off-by: default avatarJamie Iles <jamie@jamieiles.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent dcb69290
...@@ -348,7 +348,7 @@ static void apbt_restart_clocksource(struct clocksource *cs) ...@@ -348,7 +348,7 @@ static void apbt_restart_clocksource(struct clocksource *cs)
* dw_apb_clocksource_register() as the next step. * dw_apb_clocksource_register() as the next step.
*/ */
struct dw_apb_clocksource * struct dw_apb_clocksource *
dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base, dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base,
unsigned long freq) unsigned long freq)
{ {
struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL); struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL);
......
...@@ -46,7 +46,7 @@ struct dw_apb_clock_event_device * ...@@ -46,7 +46,7 @@ struct dw_apb_clock_event_device *
dw_apb_clockevent_init(int cpu, const char *name, unsigned rating, dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,
void __iomem *base, int irq, unsigned long freq); void __iomem *base, int irq, unsigned long freq);
struct dw_apb_clocksource * struct dw_apb_clocksource *
dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base, dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base,
unsigned long freq); unsigned long freq);
void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs); void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs);
void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs); void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs);
......
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