/* s3c2412_calc_bank - calculate the bank divisor settings. @cfg: The current frequency configuration. @bt: The bank timing.  */
static int s3c2412_calc_bank(struct s3c_cpufreq_config *cfg, struct s3c2412_iobank_timing *bt)
/* s3c2412_calc_bank - calculate the bank divisor settings. @cfg: The current frequency configuration. @bt: The bank timing.  */
static int s3c2412_calc_bank(struct s3c_cpufreq_config *cfg, struct s3c2412_iobank_timing *bt)
{
	unsigned int hclk = cfg->freq.hclk_tns;
	int err = 0;
	bt->smbidcyr = calc_timing(bt->idcy, hclk, &err);
	bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err);
	bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err);
	bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err);
	bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err);
	bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err);
	return err;
}