소스 검색

mmc: pxamci: Indicate that regulators may be absent

Use regulator_get_optional() to tell the core that requests for regulators
can fail in a real system.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Chris Ball <cjb@laptop.org>
Mark Brown 12 년 전
부모
커밋
6ae8717a48
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/mmc/host/pxamci.c

+ 1 - 1
drivers/mmc/host/pxamci.c

@@ -83,7 +83,7 @@ struct pxamci_host {
 static inline void pxamci_init_ocr(struct pxamci_host *host)
 static inline void pxamci_init_ocr(struct pxamci_host *host)
 {
 {
 #ifdef CONFIG_REGULATOR
 #ifdef CONFIG_REGULATOR
-	host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc");
+	host->vcc = regulator_get_optional(mmc_dev(host->mmc), "vmmc");
 
 
 	if (IS_ERR(host->vcc))
 	if (IS_ERR(host->vcc))
 		host->vcc = NULL;
 		host->vcc = NULL;