Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thierry Reding and committed by
Greg Kroah-Hartman
7750efd5 cf35d6e0

+2
+2
drivers/misc/pch_phub.c
··· 158 158 iowrite32(((ioread32(reg_addr) & ~mask)) | data, reg_addr); 159 159 } 160 160 161 + #ifdef CONFIG_PM 161 162 /* pch_phub_save_reg_conf - saves register configuration */ 162 163 static void pch_phub_save_reg_conf(struct pci_dev *pdev) 163 164 { ··· 281 280 if ((chip->ioh_type == 2) || (chip->ioh_type == 4)) 282 281 iowrite32(chip->funcsel_reg, p + FUNCSEL_REG_OFFSET); 283 282 } 283 + #endif 284 284 285 285 /** 286 286 * pch_phub_read_serial_rom() - Reading Serial ROM