lkml.org 
[lkml]   [2012]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectstarting up i2c regulator?
From
I have a gpl driver for lsm202dlh which worked with 2.6 kernels. now in 3.5
I can modprobe it (after some include-changes), but after the echo command
to new_device dmesg tells me

[ 1147.549042] lsm303dlh_a 6-0019: failed to get regulator
[ 1147.549055] lsm303dlh_a 6-0019: probe function fails fffffdfb
[ 1147.549067] i2c 6-0019: Driver lsm303dlh_a requests probe deferral
[ 1147.549078] i2c i2c-6: new_device: Instantiated device lsm303dlh_a at 0x19

and some kind of generic files in sysfs are created but not the ones that
driver should create. the driver does obviously do

ddata->regulator = regulator_get(&client->dev, "vdd");
if (IS_ERR(ddata->regulator)) {
dev_err(&client->dev, "failed to get regulator\n");
ret = PTR_ERR(ddata->regulator);
ddata->regulator = NULL;
goto err_op_failed;
}
...
err_op_failed:
kfree(ddata);
err_alloc:
dev_err(&client->dev, "probe function fails %x", ret);
return ret;


so my question is, what is the meaning of fffffdfb being returned from
regulator_get(dev,"vdd")? is there anything that needs to be done to let the
driver run on newer kernel? in applesmc.c I see nothing about "regulator"
being mentioned, is that whole thing gone?

P



\
 
 \ /
  Last update: 2012-12-21 14:41    [W:0.025 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site