summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c')
-rw-r--r--ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c b/ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c
deleted file mode 100644
index 96f815a5..00000000
--- a/ANDROID_3.4.5/arch/powerpc/sysdev/mpc5xxx_clocks.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * mpc5xxx_get_bus_frequency - Find the bus frequency for a device
- * @node: device node
- *
- * Returns bus frequency (IPS on MPC512x, IPB on MPC52xx),
- * or 0 if the bus frequency cannot be found.
- */
-
-#include <linux/kernel.h>
-#include <linux/of_platform.h>
-#include <linux/export.h>
-
-unsigned int
-mpc5xxx_get_bus_frequency(struct device_node *node)
-{
- struct device_node *np;
- const unsigned int *p_bus_freq = NULL;
-
- of_node_get(node);
- while (node) {
- p_bus_freq = of_get_property(node, "bus-frequency", NULL);
- if (p_bus_freq)
- break;
-
- np = of_get_parent(node);
- of_node_put(node);
- node = np;
- }
- if (node)
- of_node_put(node);
-
- return p_bus_freq ? *p_bus_freq : 0;
-}
-EXPORT_SYMBOL(mpc5xxx_get_bus_frequency);