Skip to content

Commit

Permalink
Merge remote-tracking branch 'regulator/topic/dt' into regulator-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 27, 2011
2 parents 02fcc84 + bc91396 commit 6806a66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ struct fixed_voltage_data {
* tree node, returns a pointer to the populated structure of NULL if memory
* alloc fails.
*/
struct fixed_voltage_config *of_get_fixed_voltage_config(struct device *dev)
static struct fixed_voltage_config *
of_get_fixed_voltage_config(struct device *dev)
{
struct fixed_voltage_config *config;
struct device_node *np = dev->of_node;
Expand All @@ -64,6 +65,9 @@ struct fixed_voltage_config *of_get_fixed_voltage_config(struct device *dev)
return NULL;

config->init_data = of_get_regulator_init_data(dev);
if (!config->init_data)
return NULL;

init_data = config->init_data;

config->supply_name = init_data->constraints.name;
Expand Down
2 changes: 2 additions & 0 deletions drivers/regulator/of_regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* (at your option) any later version.
*/

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/regulator/machine.h>
Expand Down Expand Up @@ -79,3 +80,4 @@ struct regulator_init_data *of_get_regulator_init_data(struct device *dev)
of_get_regulation_constraints(dev->of_node, &init_data);
return init_data;
}
EXPORT_SYMBOL_GPL(of_get_regulator_init_data);

0 comments on commit 6806a66

Please sign in to comment.