regulator: rpm-smd-regulator: pass descriptor to init_data parsing function
The regulator registration api's need a descriptor to access mode matching functions. rpm-smd-regulators don't use that feature. Pass in a descriptor with that function pointer set to NULL. Change-Id: I4a23021e004fa749715c246e4685df8c5b75131f Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
parent
3d72693d0a
commit
aa93a28f1e
1 changed files with 1 additions and 1 deletions
|
@ -1636,7 +1636,7 @@ static int rpm_vreg_device_probe(struct platform_device *pdev)
|
||||||
reg->set_active = !!(val & RPM_SET_CONFIG_ACTIVE);
|
reg->set_active = !!(val & RPM_SET_CONFIG_ACTIVE);
|
||||||
reg->set_sleep = !!(val & RPM_SET_CONFIG_SLEEP);
|
reg->set_sleep = !!(val & RPM_SET_CONFIG_SLEEP);
|
||||||
|
|
||||||
init_data = of_get_regulator_init_data(dev, node);
|
init_data = of_get_regulator_init_data(dev, node, ®->rdesc);
|
||||||
if (init_data == NULL) {
|
if (init_data == NULL) {
|
||||||
dev_err(dev, "%s: unable to allocate memory\n", __func__);
|
dev_err(dev, "%s: unable to allocate memory\n", __func__);
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
|
|
Loading…
Add table
Reference in a new issue