Re: [PATCH] regulator: Add option for machine drivers to enablethe dummy regulator

From: Mark Brown
Date: Wed Oct 06 2010 - 01:08:33 EST


On Wed, Oct 06, 2010 at 06:09:17AM +0200, Marek Vasut wrote:

> This still solves nothing ... This leaves boards broken and the granularity is
We've already got a compatibility option which allows this to be enabled
with a config change, and the actual code update required has been
reduced to a single line. This does not seem terribly onerous.

> too big. Consider there are boards that use regulator for MMC, but not for
> ADS7846 for example.

You can't have it both ways. Either drivers just ignore missing
regulators and just run as though everything is fine (which is what
you've been requesting enthusiastically) or they trust that they can get
accurate information about what is and isn't mapped. All this is doing
is providing a way to enable the former behaviour in the core.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/