ath5k: Use pci_is_pcie()
Use function pci_is_pcie() instead of accessing struct member directly. CC: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
John W. Linville

vecāks
2cdb9a42f3
revīzija
e98b06b09b
@@ -276,7 +276,7 @@ int ath5k_hw_init(struct ath5k_softc *sc)
|
||||
/*
|
||||
* Write PCI-E power save settings
|
||||
*/
|
||||
if ((ah->ah_version == AR5K_AR5212) && pdev && (pdev->is_pcie)) {
|
||||
if ((ah->ah_version == AR5K_AR5212) && pdev && (pci_is_pcie(pdev))) {
|
||||
ath5k_hw_reg_write(ah, 0x9248fc00, AR5K_PCIE_SERDES);
|
||||
ath5k_hw_reg_write(ah, 0x24924924, AR5K_PCIE_SERDES);
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user