From: Barry Song Date: Wed, 16 Jan 2013 06:49:27 +0000 (+0800) Subject: serial: sirf: only use lookup table to set baudrate when ioclk=150MHz X-Git-Tag: v3.9-rc1~125^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4ce718893c546f7a2d34ab55a8f75842399f86;p=pandora-kernel.git serial: sirf: only use lookup table to set baudrate when ioclk=150MHz The fast lookup table to set baudrate is only right when ioclk is 150MHz. for most platforms, ioclk is 150MHz, but some boards might set ioclk to other frequency. so re-calc the clk_div_reg when ioclk is not 150MHz. this patch also gets clk in probe and puts it in remove. Signed-off-by: Barry Song Cc: Russell King Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed