All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: fix sysfs name collision between dummy and fixed dummy regulator
@ 2012-03-31  8:33 Shawn Guo
  2012-03-31  8:33 ` [PATCH 2/2] regulator: rename function regulator_register_fixed Shawn Guo
  2012-03-31 10:25 ` [PATCH 1/2] regulator: fix sysfs name collision between dummy and fixed dummy regulator Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Shawn Guo @ 2012-03-31  8:33 UTC (permalink / raw)
  To: linux-arm-kernel

When regulator_register_fixed() is being used to register fixed dummy
regulator, the following line will be seen in the boot log.  And the
sysfs entry for fixed dummy regulator is not shown.

  dummy: Failed to create debugfs directory

The patch renames the fixed dummy supply to "fixed-dummy" to avoid
the name collision with dummy regulator.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 drivers/regulator/fixed-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/fixed-helper.c b/drivers/regulator/fixed-helper.c
index 30d0a15..efb52dc 100644
--- a/drivers/regulator/fixed-helper.c
+++ b/drivers/regulator/fixed-helper.c
@@ -32,7 +32,7 @@ struct platform_device *regulator_register_fixed(int id,
 	if (!data)
 		return NULL;
 
-	data->cfg.supply_name = "dummy";
+	data->cfg.supply_name = "fixed-dummy";
 	data->cfg.microvolts = 0;
 	data->cfg.gpio = -EINVAL;
 	data->cfg.enabled_at_boot = 1;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-31 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-31  8:33 [PATCH 1/2] regulator: fix sysfs name collision between dummy and fixed dummy regulator Shawn Guo
2012-03-31  8:33 ` [PATCH 2/2] regulator: rename function regulator_register_fixed Shawn Guo
2012-03-31 10:25   ` Mark Brown
2012-03-31 12:54     ` Shawn Guo
2012-03-31 13:45       ` Mark Brown
2012-03-31 10:25 ` [PATCH 1/2] regulator: fix sysfs name collision between dummy and fixed dummy regulator Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.