| Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 1 | /* | 
| Magnus Damm | 3572b33 | 2010-08-16 10:40:49 +0000 | [diff] [blame] | 2 | * SH-Mobile Clock Framework | 
| Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 3 | * | 
|  | 4 | * Copyright (C) 2010  Magnus Damm | 
|  | 5 | * | 
| Magnus Damm | 3572b33 | 2010-08-16 10:40:49 +0000 | [diff] [blame] | 6 | * Used together with arch/arm/common/clkdev.c and drivers/sh/clk.c. | 
|  | 7 | * | 
| Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 8 | * This program is free software; you can redistribute it and/or modify | 
|  | 9 | * it under the terms of the GNU General Public License as published by | 
|  | 10 | * the Free Software Foundation; version 2 of the License. | 
|  | 11 | * | 
|  | 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. | 
|  | 16 | * | 
|  | 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA | 
|  | 20 | * | 
|  | 21 | */ | 
|  | 22 | #include <linux/kernel.h> | 
|  | 23 | #include <linux/init.h> | 
|  | 24 | #include <linux/sh_clk.h> | 
| Paul Gortmaker | dc28094 | 2011-07-31 16:17:29 -0400 | [diff] [blame] | 25 | #include <linux/export.h> | 
| Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 26 |  | 
|  | 27 | int __init clk_init(void) | 
|  | 28 | { | 
|  | 29 | /* Kick the child clocks.. */ | 
|  | 30 | recalculate_root_clocks(); | 
|  | 31 |  | 
|  | 32 | /* Enable the necessary init clocks */ | 
|  | 33 | clk_enable_init_clocks(); | 
|  | 34 |  | 
|  | 35 | return 0; | 
|  | 36 | } | 
|  | 37 |  | 
|  | 38 | int __clk_get(struct clk *clk) | 
|  | 39 | { | 
|  | 40 | return 1; | 
|  | 41 | } | 
|  | 42 | EXPORT_SYMBOL(__clk_get); | 
|  | 43 |  | 
|  | 44 | void __clk_put(struct clk *clk) | 
|  | 45 | { | 
|  | 46 | } | 
|  | 47 | EXPORT_SYMBOL(__clk_put); |