[PATCH V3 1/8] CLKDEV: Add helper routines to allocate and add clkdevs for given struct clk *
Sascha Hauer
s.hauer at pengutronix.de
Sat Apr 28 07:01:08 EDT 2012
On Sat, Apr 28, 2012 at 10:52:22AM +0100, Russell King - ARM Linux wrote:
> +
> +/**
> + * clk_register_clkdev - register one clock lookup for a struct clk
> + * @clk: struct clk to associate with all clk_lookups
> + * @con_id: connection ID string on device
> + * @dev_id: format string describing device name
> + *
> + * con_id or dev_id may be NULL as a wildcard, just as in the rest of
> + * clkdev.
> + *
> + * To make things easier for mass registration, we detect the NULL clk
> + * from a previous clk_register() call, and generate an error code for
> + * that. This is to permit this function to be called immediately after
> + * clk_register().
> + */
> +int clk_register_clkdev(struct clk *clk, const char *con_id,
> + const char *dev_fmt, ...)
> +{
> + struct clk_lookup *cl;
> + va_list ap;
> +
> + if (!clk)
> + return -ENOMEM;
clk_register was recently changed to return ERR_PTR in Mikes branch.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the linux-arm-kernel
mailing list