On Wed, Jan 14, 2009 at 04:09:07PM +0530, Pillai, Manikandan wrote: > The other problem which I encounter is with the function regulator_get(). > Regulator_get() requires 2 parameters - device pointer should point to the > One passed during regulator_register. It also takes a string a second parameter The struct device that is being checked is the struct device from the consumer list. It is not the struct device that is passed immediately in the arguments to regulator_register(). The struct device passed to register regulator should not be being used with regulator_get(). Both parameters used with regulator_get() are being compared with the information supplied in the consumer list. > Which is compared with the supply string initialized in the regulator init data > element regulator_consumer_supply.supply. Right, just like the device that is asked for is compared with the struct device that is specified by the dev field of the same structure. > Passing the client->dev, invoking regulator_register() fails. I'm not sure what you mean by "passing the client->dev" here? -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html