lkml.org 
[lkml]   [2014]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH resend v2 2/3] regulator/axp20x: Call mfd_register_supply_aliases
Date
The mfd-core no longer registers the supply aliases, instead the platform
driver probe method must now call mfd_register_supply_aliases().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/regulator/axp20x-regulator.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index 004aadb..0e5ff8a 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -21,6 +21,7 @@
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/axp20x.h>
+#include <linux/mfd/core.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/of_regulator.h>

@@ -238,6 +239,10 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
int ret, i;
u32 workmode;

+ ret = mfd_register_supply_aliases(pdev);
+ if (ret)
+ return ret;
+
ret = axp20x_regulator_parse_dt(pdev);
if (ret)
return ret;
--
2.0.0


\
 
 \ /
  Last update: 2014-06-30 17:01    [W:0.061 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site