/* Given the parent's rate and the divider in 7.1 format, this works out the resulting peripheral clock rate. */
static unsigned long get_rate_from_divider(unsigned long parent_rate, int divider)
/* Given the parent's rate and the divider in 7.1 format, this works out the resulting peripheral clock rate. */
static unsigned long get_rate_from_divider(unsigned long parent_rate, int divider)
{
	u64 rate;
	rate = (u64)parent_rate * 2;
	do_div(rate, divider + 2);
	return rate;
}