mmc: sdhci-pci: Conditionally compile pm sleep functions
It is confusing to have some parts of suspend / resume under conditional compilation and some parts not. Use conditional compilation everywhere. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Цей коміт міститься в:

зафіксовано
Ulf Hansson

джерело
1cb0a58ec7
коміт
b7813f0fe9
@@ -67,8 +67,10 @@ struct sdhci_pci_fixes {
|
||||
int (*add_host) (struct sdhci_pci_slot *);
|
||||
void (*remove_slot) (struct sdhci_pci_slot *, int);
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
int (*suspend) (struct sdhci_pci_chip *);
|
||||
int (*resume) (struct sdhci_pci_chip *);
|
||||
#endif
|
||||
|
||||
const struct sdhci_ops *ops;
|
||||
size_t priv_size;
|
||||
|
Посилання в новій задачі
Заблокувати користувача