From d7e7e70609313c07709984c97e8f09d1c02483d2 Mon Sep 17 00:00:00 2001 From: Jean-Francois Moine Date: Tue, 2 Apr 2013 13:02:36 +0200 Subject: [PATCH] --- yaml --- r: 365293 b: refs/heads/master c: f640c0fad698c0e4b07e05373681d3681125d6af h: refs/heads/master i: 365291: 31b6b0a140538c468decc742478486a909a5659b v: v3 --- [refs] | 2 +- trunk/drivers/clk/mvebu/clk-cpu.c | 17 ++--------------- trunk/drivers/clk/mvebu/clk-cpu.h | 22 ---------------------- trunk/drivers/clk/mvebu/clk.c | 6 +----- 4 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 trunk/drivers/clk/mvebu/clk-cpu.h diff --git a/[refs] b/[refs] index ecf86360373f..e21cab555849 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3566d40c1a4617461b38c82059bdc41d622faa8b +refs/heads/master: f640c0fad698c0e4b07e05373681d3681125d6af diff --git a/trunk/drivers/clk/mvebu/clk-cpu.c b/trunk/drivers/clk/mvebu/clk-cpu.c index 9dd2551a0a41..b0fbc0715491 100644 --- a/trunk/drivers/clk/mvebu/clk-cpu.c +++ b/trunk/drivers/clk/mvebu/clk-cpu.c @@ -16,7 +16,6 @@ #include #include #include -#include "clk-cpu.h" #define SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET 0x0 #define SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET 0xC @@ -173,17 +172,5 @@ void __init of_cpu_clk_setup(struct device_node *node) kfree(cpuclk); } -static const __initconst struct of_device_id clk_cpu_match[] = { - { - .compatible = "marvell,armada-xp-cpu-clock", - .data = of_cpu_clk_setup, - }, - { - /* sentinel */ - }, -}; - -void __init mvebu_cpu_clk_init(void) -{ - of_clk_init(clk_cpu_match); -} +CLK_OF_DECLARE(armada_xp_cpu_clock, "marvell,armada-xp-cpu-clock", + of_cpu_clk_setup); diff --git a/trunk/drivers/clk/mvebu/clk-cpu.h b/trunk/drivers/clk/mvebu/clk-cpu.h deleted file mode 100644 index 08e2affba4e6..000000000000 --- a/trunk/drivers/clk/mvebu/clk-cpu.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Marvell MVEBU CPU clock handling. - * - * Copyright (C) 2012 Marvell - * - * Gregory CLEMENT - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __MVEBU_CLK_CPU_H -#define __MVEBU_CLK_CPU_H - -#ifdef CONFIG_MVEBU_CLK_CPU -void __init mvebu_cpu_clk_init(void); -#else -static inline void mvebu_cpu_clk_init(void) {} -#endif - -#endif diff --git a/trunk/drivers/clk/mvebu/clk.c b/trunk/drivers/clk/mvebu/clk.c index 855681b8a9dc..29f10fb3006c 100644 --- a/trunk/drivers/clk/mvebu/clk.c +++ b/trunk/drivers/clk/mvebu/clk.c @@ -10,18 +10,14 @@ * warranty of any kind, whether express or implied. */ #include -#include #include -#include -#include #include #include "clk-core.h" -#include "clk-cpu.h" #include "clk-gating-ctrl.h" void __init mvebu_clocks_init(void) { mvebu_core_clk_init(); mvebu_gating_clk_init(); - mvebu_cpu_clk_init(); + of_clk_init(NULL); }