From: Sergei Shtylyov Date: Tue, 11 Sep 2007 20:28:35 +0000 (+0200) Subject: hpt366: fix PCI clock detection for HPT374 (take 4) X-Git-Tag: v2.6.23-rc7~96^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7293136810936bbde403bcb67ac1b4dbae4dd790;p=pandora-kernel.git hpt366: fix PCI clock detection for HPT374 (take 4) HPT374 BIOS seems to only save f_CNT register value for the function #0 before re-tuning DPLL (that causes the driver to report obviously distorted f_CNT for the function #1) -- fix this by always reading the saved f_CNT register value from the function #0 in the driver's init_chipset() method. While at it, introduce 'chip_type' for holding the 'struct hpt_info' field of the same name and replace the structure assignment with memcpy()... Signed-off-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed