regulator: fix sysfs name collision between dummy and fixed dummy regulator

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>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Shawn Guo 2012-03-31 16:33:31 +08:00 committed by Mark Brown
parent e032b37655
commit 5f12760d28
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ struct platform_device *regulator_register_fixed(int id,
if (!data) if (!data)
return NULL; return NULL;
data->cfg.supply_name = "dummy"; data->cfg.supply_name = "fixed-dummy";
data->cfg.microvolts = 0; data->cfg.microvolts = 0;
data->cfg.gpio = -EINVAL; data->cfg.gpio = -EINVAL;
data->cfg.enabled_at_boot = 1; data->cfg.enabled_at_boot = 1;