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:
Abhijeet Dharmapurikar 2016-01-15 12:08:16 -08:00 committed by Rohit Vaswani
parent 3d72693d0a
commit aa93a28f1e

View file

@ -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, &reg->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;