Skip to content

Commit

Permalink
dw_apb_timer: constify clocksource name
Browse files Browse the repository at this point in the history
The clocksource name should be const for correctness.

Cc: John Stultz <[email protected]>
Signed-off-by: Jamie Iles <[email protected]>
Signed-off-by: John Stultz <[email protected]>
  • Loading branch information
jamieiles authored and johnstultz-work committed Oct 4, 2011
1 parent dcb6929 commit a133022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/clocksource/dw_apb_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static void apbt_restart_clocksource(struct clocksource *cs)
* dw_apb_clocksource_register() as the next step.
*/
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)
{
struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/dw_apb_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct dw_apb_clock_event_device *
dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,
void __iomem *base, int irq, unsigned long freq);
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);
void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs);
void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs);
Expand Down

0 comments on commit a133022

Please sign in to comment.