[PATCH] Add helper for registering a fixed regulator

From: Sascha Hauer
Date: Sat Mar 03 2012 - 06:41:10 EST



Hi,

The following adds a helper for registering a fixed dummy regulator
making it simple for boards which have no software controllable regulator
for certain devices to register a fixed regulator as a dummy.

The last two patches make smsc911x ethernet functional again which
broke when the smsc911x driver gained regulator support.

Sascha

----------------------------------------------------------------
Sascha Hauer (4):
regulator fixed: Do not report enumaratable voltages if there are none
regulator: provide a helper for registering a fixed regulator
ARM i.MX pcm037: register a dummy regulator for the smsc911x device
ARM i.MX 3ds debugboard: register a dummy regulator for the smsc911x device

arch/arm/mach-imx/mach-pcm037.c | 9 ++++++
arch/arm/plat-mxc/3ds_debugboard.c | 9 ++++++
drivers/regulator/Makefile | 2 +-
drivers/regulator/fixed-helper.c | 53 ++++++++++++++++++++++++++++++++++++
drivers/regulator/fixed.c | 4 ++-
include/linux/regulator/fixed.h | 13 +++++++++
6 files changed, 88 insertions(+), 2 deletions(-)
create mode 100644 drivers/regulator/fixed-helper.c
--
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/