]> git.baikalelectronics.ru Git - kernel.git/commit
ata: pata_hpt37x: factor out hpt37x_pci_clock()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sun, 15 May 2022 20:41:24 +0000 (23:41 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 13 Jun 2022 02:42:58 +0000 (11:42 +0900)
commite68ba38988eab1fa6e8ac7fa47c2229a6349efb1
tree2da333397bb0aabe8bbb05e448103c739534a01b
parenta2f99e3a3b2598996a332eca18167727dab6dd33
ata: pata_hpt37x: factor out hpt37x_pci_clock()

Factor out the PCI clock frequency detection code into hpt37x_pci_clock(),
so that this driver becomes more like 'pata_hpt3x2n'.  Note that I decided
to change the way HPT374 is identified to using the PCI device ID...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_hpt37x.c