ARM: nomadik: fix clocksource warning
The clocksource API has changed slightly, which causes a harmless warning: /git/arm-soc/drivers/clocksource/nomadik-mtu.c:259:28: warning: 'nmdk_timer_match' defined but not used [-Wunused-variable] static struct of_device_id nmdk_timer_match[] __initconst = { ^ Fortunately, the same API change also lets us simplify the code while removing the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
parent
d1ba78cd72
commit
3c09f4daee
|
@ -256,23 +256,13 @@ void __init nmdk_timer_init(void __iomem *base, int irq)
|
||||||
__nmdk_timer_init(base, irq, pclk0, clk0);
|
__nmdk_timer_init(base, irq, pclk0, clk0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id nmdk_timer_match[] __initconst = {
|
static void __init nmdk_timer_of_init(struct device_node *node)
|
||||||
{ .compatible = "st,nomadik-mtu" },
|
|
||||||
{}
|
|
||||||
};
|
|
||||||
|
|
||||||
static void __init nmdk_timer_of_init(void)
|
|
||||||
{
|
{
|
||||||
struct device_node *node;
|
|
||||||
struct clk *pclk;
|
struct clk *pclk;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
node = of_find_matching_node(NULL, nmdk_timer_match);
|
|
||||||
if (!node)
|
|
||||||
panic("No timer node");
|
|
||||||
|
|
||||||
base = of_iomap(node, 0);
|
base = of_iomap(node, 0);
|
||||||
if (!base)
|
if (!base)
|
||||||
panic("Can't remap registers");
|
panic("Can't remap registers");
|
||||||
|
|
Loading…
Reference in New Issue