diff options
author | Thierry Reding <treding@nvidia.com> | 2014-10-02 03:26:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-07 13:28:36 -0500 |
commit | 7750efd59a290ab089bfc5c121787f4c630fe606 (patch) | |
tree | e6dce99ec3d1128f53da16ec7ee0c21968860705 /drivers/misc | |
parent | cf35d6e0475982667b0d2d318fb27be4b8849827 (diff) |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/pch_phub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c index 956597321d2a..9a17a9bab8d6 100644 --- a/drivers/misc/pch_phub.c +++ b/drivers/misc/pch_phub.c | |||
@@ -158,6 +158,7 @@ static void pch_phub_read_modify_write_reg(struct pch_phub_reg *chip, | |||
158 | iowrite32(((ioread32(reg_addr) & ~mask)) | data, reg_addr); | 158 | iowrite32(((ioread32(reg_addr) & ~mask)) | data, reg_addr); |
159 | } | 159 | } |
160 | 160 | ||
161 | #ifdef CONFIG_PM | ||
161 | /* pch_phub_save_reg_conf - saves register configuration */ | 162 | /* pch_phub_save_reg_conf - saves register configuration */ |
162 | static void pch_phub_save_reg_conf(struct pci_dev *pdev) | 163 | static void pch_phub_save_reg_conf(struct pci_dev *pdev) |
163 | { | 164 | { |
@@ -280,6 +281,7 @@ static void pch_phub_restore_reg_conf(struct pci_dev *pdev) | |||
280 | if ((chip->ioh_type == 2) || (chip->ioh_type == 4)) | 281 | if ((chip->ioh_type == 2) || (chip->ioh_type == 4)) |
281 | iowrite32(chip->funcsel_reg, p + FUNCSEL_REG_OFFSET); | 282 | iowrite32(chip->funcsel_reg, p + FUNCSEL_REG_OFFSET); |
282 | } | 283 | } |
284 | #endif | ||
283 | 285 | ||
284 | /** | 286 | /** |
285 | * pch_phub_read_serial_rom() - Reading Serial ROM | 287 | * pch_phub_read_serial_rom() - Reading Serial ROM |