Skip to contentSkip to conversation

MMC: Avoid useless selection of MMC_RICOH_MMC quirk

PATCH New Sascha El-Sharkawy 1 participant 1 message Sep 24, 2017 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MMC: Avoid useless selection of MMC_RICOH_MMC quirk

Ensure correct functionality of MMC_RICOH_MMC pci quirk.

MMC_RICOH_MMC is a pci quirk (realized in /drivers/pci/quirks.c lines 2877
- 2959), which in turn depend on PCI_QUIRKS. However, MMC_RICOH_MMC can be selected even if pci quirks (PCI_QUIRKS) are globally disabled. This patch adds the missing dependency to MMC_RICOH_MMC to ensure that it can only be selected if pci quirks are active.

---
 drivers/mmc/host/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +1 -1
index 8c15637..81143fb 100644
@@ -91,7 +91,7 @@ config MMC_SDHCI_PCI
 
 config MMC_RICOH_MMC
 	bool "Ricoh MMC Controller Disabler"
-	depends on MMC_SDHCI_PCI
+	depends on MMC_SDHCI_PCI && PCI_QUIRKS
 	default y
 	help
 	  This adds a pci quirk to disable Ricoh MMC Controller. This