]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clkdev: get rid of redundant clk_add_alias() prototype in linux/clk.h
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Mar 2015 11:03:00 +0000 (11:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 May 2015 10:58:51 +0000 (11:58 +0100)
clk_add_alias() is provided by clkdev, and is not part of the clk API.
Howver, it is prototyped in two locations: linux/clkdev.h and
linux/clk.h.  This is a mess.  Get rid of the redundant and unnecessary
version in linux/clk.h.

Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-davinci/da850.c
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-pxa/eseries.c
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/tosa.c
include/linux/clk.h

index 45ce065e7170f802483ebef099621f20e12772e7..3b8740c083c4818c40ad6d721b029158b24e34b2 100644 (file)
@@ -11,6 +11,7 @@
  * is licensed "as is" without any warranty of any kind, whether express
  * or implied.
  */
+#include <linux/clkdev.h>
 #include <linux/gpio.h>
 #include <linux/init.h>
 #include <linux/clk.h>
index 85089d821982193b2e2d79f5f5fbf050eefad464..3bc59390a943d97e33c92743c189ca6ffac43c0d 100644 (file)
@@ -7,6 +7,7 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
+#include <linux/clkdev.h>
 #include <linux/irq.h>
 #include <linux/gpio.h>
 #include <linux/kernel.h>
@@ -14,7 +15,6 @@
 #include <linux/mutex.h>
 #include <linux/platform_device.h>
 #include <linux/input.h>
-#include <linux/clk.h>
 #include <linux/omapfb.h>
 
 #include <linux/spi/spi.h>
index cfb864173ce33b13ea01a5cab8321c0fc9f4131f..4427bf26ea478a6cf400e9f1185467461cda1750 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <linux/clkdev.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/gpio.h>
index d8a1be619f21c7578bbde5fa37d00907fa80e353..235f2d9318c1f92a16b938d6b00cf0aae1b66be6 100644 (file)
@@ -11,6 +11,7 @@
  *  it under the terms of the GNU General Public License version 2 as
  *  published by the Free Software Foundation.
  */
+#include <linux/clkdev.h>
 #include <linux/gpio.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
index 7780d1faa06f563057e68e749e7ccc7a9a8006d6..92e56d8a24d82171eb7e4cf433472e7aba6b081e 100644 (file)
@@ -12,6 +12,7 @@
  *
  */
 
+#include <linux/clkdev.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/platform_device.h>
index cafb22df8d00e15dc1b488fc2ded666f623490b3..0df4a51e1a78d2bd74ac899c655bce9659ea50da 100644 (file)
@@ -485,19 +485,6 @@ static inline void clk_disable_unprepare(struct clk *clk)
        clk_unprepare(clk);
 }
 
-/**
- * clk_add_alias - add a new clock alias
- * @alias: name for clock alias
- * @alias_dev_name: device name
- * @id: platform specific clock name
- * @dev: device
- *
- * Allows using generic clock names for drivers by adding a new alias.
- * Assumes clkdev, see clkdev.h for more info.
- */
-int clk_add_alias(const char *alias, const char *alias_dev_name, char *id,
-                       struct device *dev);
-
 struct device_node;
 struct of_phandle_args;