On Mon, Jul 02, 2012 at 03:37:25PM +0530, Laxman Dewangan wrote: > + if (vin_supply) > + drvdata->desc.supply_name = "vin"; > + This isn't great both in terms of it being conditional and the fact that it's only usable on DT systems as there's no non-DT way to do this. In general unless we're working around some device tree issue (which should be *very* rare) we shouldn't be adding any DT only stuff to generic code, we need to be able to run Linux on non-DT systems.