From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756694AbcGINpf (ORCPT ); Sat, 9 Jul 2016 09:45:35 -0400 Received: from mga14.intel.com ([192.55.52.115]:39864 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747AbcGINpe (ORCPT ); Sat, 9 Jul 2016 09:45:34 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,336,1464678000"; d="scan'208";a="1013696110" From: Andy Shevchenko To: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org Cc: Andy Shevchenko Subject: [PATCH v1 1/1] x86/platform/intel-mid: Mark regulators explicitly defined Date: Sat, 9 Jul 2016 16:45:29 +0300 Message-Id: <1468071929-77383-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.8.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Intel MID platforms are using explicitly defined regulators. Let regulator core know that we do not have any additional regulators left. This lets it substitute unprovided regulators with dummy ones. Without this change when CONFIG_REGULATOR=y the USB driver fails on getting "vbus" regulator and SDHCI can't get "vmmc" and "vqmmc" regulators either. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/intel-mid.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/platform/intel-mid/intel-mid.c b/arch/x86/platform/intel-mid/intel-mid.c index 90bb997..ad10fce 100644 --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -144,6 +145,15 @@ static void intel_mid_arch_setup(void) out: if (intel_mid_ops->arch_setup) intel_mid_ops->arch_setup(); + + /* + * Intel MID platforms are using explicitly defined regulators. + * + * Let regulator core know that we do not have any additional + * regulators left. This lets it substitute unprovided regulators with + * dummy ones. + */ + regulator_has_full_constraints(); } /* MID systems don't have i8042 controller */ -- 2.8.1