Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3570e3c authored by Robert Jarzmik's avatar Robert Jarzmik
Browse files

ARM: sa11x0/pxa: get rid of get_clock_tick_rate



The last user of this function is gone, so remove it. The clock API
should now be used to get clock rates.

Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 6924089c
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -43,21 +43,6 @@ void clear_reset_status(unsigned int mask)
	}
}

unsigned long get_clock_tick_rate(void)
{
	unsigned long clock_tick_rate;

	if (cpu_is_pxa25x())
		clock_tick_rate = 3686400;
	else if (machine_is_mainstone())
		clock_tick_rate = 3249600;
	else
		clock_tick_rate = 3250000;

	return clock_tick_rate;
}
EXPORT_SYMBOL(get_clock_tick_rate);

/*
 * For non device-tree builds, keep legacy timer init
 */
+0 −2
Original line number Diff line number Diff line
@@ -303,8 +303,6 @@
 */
extern unsigned int get_memclk_frequency_10khz(void);

/* return the clock tick rate of the OS timer */
extern unsigned long get_clock_tick_rate(void);
#endif

#endif  /* _ASM_ARCH_HARDWARE_H */
+0 −4
Original line number Diff line number Diff line
@@ -43,10 +43,6 @@
# define __REG(x)	(*((volatile unsigned long __iomem *)io_p2v(x)))
# define __PREG(x)	(io_v2p((unsigned long)&(x)))

static inline unsigned long get_clock_tick_rate(void)
{
	return 3686400;
}
#else

# define __REG(x)	io_p2v(x)