Brian Swetland | 600f7cf | 2008-09-09 11:04:14 -0700 | [diff] [blame] | 1 | /* arch/arm/mach-msm/clock.c |
| 2 | * |
| 3 | * Copyright (C) 2007 Google, Inc. |
Stephen Boyd | 8cc7f53 | 2013-06-17 10:43:19 -0700 | [diff] [blame] | 4 | * Copyright (c) 2007-2012, The Linux Foundation. All rights reserved. |
Brian Swetland | 600f7cf | 2008-09-09 11:04:14 -0700 | [diff] [blame] | 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | */ |
| 16 | |
Stephen Boyd | 8cc7f53 | 2013-06-17 10:43:19 -0700 | [diff] [blame] | 17 | #include <linux/clk-provider.h> |
Stephen Boyd | bd32344 | 2011-02-23 09:37:42 -0800 | [diff] [blame] | 18 | #include <linux/module.h> |
Brian Swetland | 600f7cf | 2008-09-09 11:04:14 -0700 | [diff] [blame] | 19 | |
| 20 | #include "clock.h" |
Brian Swetland | 600f7cf | 2008-09-09 11:04:14 -0700 | [diff] [blame] | 21 | |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 22 | int clk_reset(struct clk *clk, enum clk_reset_action action) |
| 23 | { |
Stephen Boyd | 8cc7f53 | 2013-06-17 10:43:19 -0700 | [diff] [blame] | 24 | struct clk_hw *hw = __clk_get_hw(clk); |
| 25 | struct msm_clk *m = to_msm_clk(hw); |
| 26 | return m->reset(hw, action); |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 27 | } |
| 28 | EXPORT_SYMBOL(clk_reset); |