[RFC] [PATCH] arm & sh: factorised duplicated clkdev.c

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Sep 1 05:12:33 EDT 2010


On Tue, Aug 31, 2010 at 01:16:42PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> factorise some generic infrastructure to assist looking up struct clks
> for the ARM & SH architecture.
> +/*
> + * Returns a clock. Note that we first try to use device id on the bus
> + * and clock name. If this fails, we try to use clock name only.
> + */
>  struct clk *clk_get(struct device *dev, const char *con_id)
>  {
>  	const char *dev_id = dev ? dev_name(dev) : NULL;
>  
>  	return clk_get_sys(dev_id, con_id);
>  }
> -EXPORT_SYMBOL(clk_get);
> +EXPORT_SYMBOL_GPL(clk_get);
>  
>  void clk_put(struct clk *clk)
>  {
>  	__clk_put(clk);
>  }
> -EXPORT_SYMBOL(clk_put);
> +EXPORT_SYMBOL_GPL(clk_put);

Please leave these as-is.



More information about the linux-arm-kernel mailing list