diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mmc/host/sdhci-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 92e6e81b4de2..0955777b6c7e 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c | |||
| @@ -1378,7 +1378,8 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot( | |||
| 1378 | * from runtime suspend. If it is not there, don't allow runtime PM. | 1378 | * from runtime suspend. If it is not there, don't allow runtime PM. |
| 1379 | * Note sdhci_pci_add_own_cd() sets slot->cd_gpio to -EINVAL on failure. | 1379 | * Note sdhci_pci_add_own_cd() sets slot->cd_gpio to -EINVAL on failure. |
| 1380 | */ | 1380 | */ |
| 1381 | if (chip->fixes->own_cd_for_runtime_pm && !gpio_is_valid(slot->cd_gpio)) | 1381 | if (chip->fixes && chip->fixes->own_cd_for_runtime_pm && |
| 1382 | !gpio_is_valid(slot->cd_gpio)) | ||
| 1382 | chip->allow_runtime_pm = false; | 1383 | chip->allow_runtime_pm = false; |
| 1383 | 1384 | ||
| 1384 | return slot; | 1385 | return slot; |
