diff mbox

regulator: mt6311: MT6311_REGULATOR needs to select REGMAP_I2C

Message ID 1447749409-19900-1-git-send-email-henryc.chen@mediatek.com (mailing list archive)
State New, archived
Headers show

Commit Message

Henry Chen Nov. 17, 2015, 8:36 a.m. UTC
This patch fix the below build error:
drivers/regulator/mt6311-regulator.c:111: undefined reference to `__devm_regmap_init_i2c'

Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
---
 drivers/regulator/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Matthias Brugger Nov. 17, 2015, 10:09 a.m. UTC | #1
On 17/11/15 09:36, Henry Chen wrote:
> This patch fix the below build error:
> drivers/regulator/mt6311-regulator.c:111: undefined reference to `__devm_regmap_init_i2c'
>
> Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
> ---
>   drivers/regulator/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
> index 8df0b0e..0067620 100644
> --- a/drivers/regulator/Kconfig
> +++ b/drivers/regulator/Kconfig
> @@ -446,6 +446,7 @@ config REGULATOR_MC13892
>   config REGULATOR_MT6311
>   	tristate "MediaTek MT6311 PMIC"
>   	depends on I2C
> +	select REGMAP_I2C
>   	help
>   	  Say y here to select this option to enable the power regulator of
>   	  MediaTek MT6311 PMIC.
>

This should also be added to v4.3
I propose that you resend it adding the tag:
Cc: stable@vger.kernel.org

as explained in Documentation/stable_kernel_rules.txt

Regards,
Matthias
Mark Brown Nov. 17, 2015, 10:55 a.m. UTC | #2
On Tue, Nov 17, 2015 at 11:09:12AM +0100, Matthias Brugger wrote:

> This should also be added to v4.3
> I propose that you resend it adding the tag:
> Cc: stable@vger.kernel.org

> as explained in Documentation/stable_kernel_rules.txt

Please don't, that just makes more work for me having to deal with two
copies of the mail.
diff mbox

Patch

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 8df0b0e..0067620 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -446,6 +446,7 @@  config REGULATOR_MC13892
 config REGULATOR_MT6311
 	tristate "MediaTek MT6311 PMIC"
 	depends on I2C
+	select REGMAP_I2C
 	help
 	  Say y here to select this option to enable the power regulator of
 	  MediaTek MT6311 PMIC.