Skip to content

Commit

Permalink
Merge branch 'vt8500/timer' into next/cleanup
Browse files Browse the repository at this point in the history
* vt8500/timer:
  timer: vt8500: Convert vt8500 to use CLKSRC_OF

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed Jan 15, 2013
2 parents f8060f5 + 41d1651 commit 2ea0dde
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 25 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-vt8500/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config ARCH_VT8500
select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
select CLKDEV_LOOKUP
select CLKSRC_OF
select CPU_ARM926T
select GENERIC_CLOCKEVENTS
select GENERIC_GPIO
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-vt8500/vt8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <linux/clocksource.h>
#include <linux/io.h>
#include <linux/pm.h>
#include <linux/vt8500_timer.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -186,8 +186,8 @@ DT_MACHINE_START(WMT_DT, "VIA/Wondermedia SoC (Device Tree Support)")
.dt_compat = vt8500_dt_compat,
.map_io = vt8500_map_io,
.init_irq = vt8500_init_irq,
.init_time = vt8500_timer_init,
.init_machine = vt8500_init,
.init_time = clocksource_of_init,
.restart = vt8500_restart,
.handle_irq = vt8500_handle_irq,
MACHINE_END
Expand Down
3 changes: 2 additions & 1 deletion drivers/clocksource/vt8500_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static struct of_device_id vt8500_timer_ids[] = {
{ }
};

void __init vt8500_timer_init(void)
static void __init vt8500_timer_init(void)
{
struct device_node *np;
int timer_irq;
Expand Down Expand Up @@ -177,3 +177,4 @@ void __init vt8500_timer_init(void)
4, 0xf0000000);
}

CLOCKSOURCE_OF_DECLARE(vt8500, "via,vt8500-timer", vt8500_timer_init)
22 changes: 0 additions & 22 deletions include/linux/vt8500_timer.h

This file was deleted.

0 comments on commit 2ea0dde

Please sign in to comment.