From 22c51b47aa7cded7e4768540ebbbfddc91e31d90 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 1 Apr 2011 18:25:25 +0800 Subject: regulator: Fix the argument of calling regulator_mode_constrain The second parameter of regulator_mode_constrain takes a pointer. This patch fixes below warning: drivers/regulator/core.c: In function 'regulator_set_mode': drivers/regulator/core.c:2014: warning: passing argument 2 of 'regulator_mode_constrain' makes pointer from integer without a cast drivers/regulator/core.c:200: note: expected 'int *' but argument is of type 'unsigned int' Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 7104404a..a2728a4 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -2011,7 +2011,7 @@ int regulator_set_mode(struct regulator *regulator, unsigned int mode) } /* constraints check */ - ret = regulator_mode_constrain(rdev, mode); + ret = regulator_mode_constrain(rdev, &mode); if (ret < 0) goto out; -- cgit v1.1