/* Associate a particular clock with a function (eg, "uart") and device. The drivers can then request the same 'function' with several different devices and not care about which clock name to use.  */
void __init at91_clock_associate(const char *id, struct device *dev, const char *func)
/* Associate a particular clock with a function (eg, "uart") and device. The drivers can then request the same 'function' with several different devices and not care about which clock name to use.  */
void __init at91_clock_associate(const char *id, struct device *dev, const char *func)
{
	struct clk *clk = clk_get(NULL, id);
	if (!dev || !clk || !IS_ERR(clk_get(dev, func)))
		return;
	clk->function = func;
	clk->dev = dev;
}