2 * arch/ubicom32/mach-common/common.c
3 * Common platform support.
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
23 * Ubicom32 implementation derived from (with many thanks):
28 #include <linux/version.h>
29 #include <linux/kernel.h>
30 #include <linux/init.h>
31 #include <linux/module.h>
32 #include <linux/list.h>
33 #include <linux/errno.h>
34 #include <linux/err.h>
35 #include <linux/string.h>
36 #include <linux/clk.h>
37 #include <linux/mutex.h>
38 #include <linux/platform_device.h>
41 /* Minimum CLK support */
43 struct clk
*clk_get(struct device
*dev
, const char *id
)
45 return ERR_PTR(-ENOENT
);
47 EXPORT_SYMBOL(clk_get
);
49 void clk_put(struct clk
*clk
)
52 EXPORT_SYMBOL(clk_put
);
54 int clk_enable(struct clk
*clk
)
58 EXPORT_SYMBOL(clk_enable
);
61 void clk_disable(struct clk
*clk
)
64 EXPORT_SYMBOL(clk_disable
);