On Tue, Mar 24, 2009 at 05:14:58PM +0530, Aggarwal, Anuj wrote: > I am seriously confused on how to fetch the struct device * in my > consumer driver, for an already registered regulator. I am planning to > use this consumer driver as a part of my CPU freq/CPU idle framework > but I don't know what to pass in regulator_get. Your consumer driver should not be using the struct device for the regulator when calling regulator_get(). They should never need to know anything about the struct device of the regulator that is providing a supply to them. The consumer should use a fixed device name and the struct device for itself, these will then be resolved to an actual regulator by the core based on the machine constraints. In the specific case of cpufreq where there is no struct device for the consumer use NULL when calling regulator_get(). -- 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