mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
pch_phub: Build context save/restore only for PM
The pch_phub_save_reg_conf() and pch_phub_restore_reg_conf() functions are only used for suspend/resume support (i.e. when PM is enabled). If PM is disabled they don't need to be built. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cf35d6e047
commit
7750efd59a
@ -158,6 +158,7 @@ static void pch_phub_read_modify_write_reg(struct pch_phub_reg *chip,
|
||||
iowrite32(((ioread32(reg_addr) & ~mask)) | data, reg_addr);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
/* pch_phub_save_reg_conf - saves register configuration */
|
||||
static void pch_phub_save_reg_conf(struct pci_dev *pdev)
|
||||
{
|
||||
@ -280,6 +281,7 @@ static void pch_phub_restore_reg_conf(struct pci_dev *pdev)
|
||||
if ((chip->ioh_type == 2) || (chip->ioh_type == 4))
|
||||
iowrite32(chip->funcsel_reg, p + FUNCSEL_REG_OFFSET);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* pch_phub_read_serial_rom() - Reading Serial ROM
|
||||
|
Loading…
Reference in New Issue
Block a user