cpufreq: cpufreq-dt: fix potential double put of cpu OF node
[linux/fpc-iii.git] / arch / arc / plat-tb10x / tb10x.c
blob06cb309294608a6753652049e7c4f3df6d8f8ada
1 /*
2 * Abilis Systems TB10x platform initialisation
4 * Copyright (C) Abilis Systems 2012
6 * Author: Christian Ruppert <christian.ruppert@abilis.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include <linux/init.h>
24 #include <linux/of_platform.h>
25 #include <linux/clk-provider.h>
26 #include <linux/pinctrl/consumer.h>
28 #include <asm/mach_desc.h>
31 static void __init tb10x_platform_init(void)
33 of_clk_init(NULL);
34 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
37 static const char *tb10x_compat[] __initdata = {
38 "abilis,arc-tb10x",
39 NULL,
42 MACHINE_START(TB10x, "tb10x")
43 .dt_compat = tb10x_compat,
44 .init_machine = tb10x_platform_init,
45 MACHINE_END