diff options
| author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-04-02 09:39:46 -0400 |
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-02 10:31:22 -0400 |
| commit | ccdf327843d1f61ffb7463ae5cdf4ca5f09f631b (patch) | |
| tree | 2a451b64eb2762cb60360cd4c38908b2b041bca6 | |
| parent | 954c59acd3f9df6899f908004e3ff349a7cecd7b (diff) | |
ARM: kzm_arm11_01: Fix smsc911x driver probe
Fix smsc911x driver probe by adding a fixed dummy regulator.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| -rw-r--r-- | arch/arm/mach-imx/mach-kzm_arm11_01.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-kzm_arm11_01.c b/arch/arm/mach-imx/mach-kzm_arm11_01.c index fc78e8071cd1..15a26e908260 100644 --- a/arch/arm/mach-imx/mach-kzm_arm11_01.c +++ b/arch/arm/mach-imx/mach-kzm_arm11_01.c | |||
| @@ -24,6 +24,8 @@ | |||
| 24 | #include <linux/serial_8250.h> | 24 | #include <linux/serial_8250.h> |
| 25 | #include <linux/smsc911x.h> | 25 | #include <linux/smsc911x.h> |
| 26 | #include <linux/types.h> | 26 | #include <linux/types.h> |
| 27 | #include <linux/regulator/machine.h> | ||
| 28 | #include <linux/regulator/fixed.h> | ||
| 27 | 29 | ||
| 28 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
| 29 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
| @@ -166,6 +168,11 @@ static struct platform_device kzm_smsc9118_device = { | |||
| 166 | }, | 168 | }, |
| 167 | }; | 169 | }; |
| 168 | 170 | ||
| 171 | static struct regulator_consumer_supply dummy_supplies[] = { | ||
| 172 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), | ||
| 173 | REGULATOR_SUPPLY("vddvario", "smsc911x"), | ||
| 174 | }; | ||
| 175 | |||
| 169 | static int __init kzm_init_smsc9118(void) | 176 | static int __init kzm_init_smsc9118(void) |
| 170 | { | 177 | { |
| 171 | /* | 178 | /* |
| @@ -175,6 +182,8 @@ static int __init kzm_init_smsc9118(void) | |||
| 175 | gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2), "smsc9118-int"); | 182 | gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2), "smsc9118-int"); |
| 176 | gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2)); | 183 | gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2)); |
| 177 | 184 | ||
| 185 | regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); | ||
| 186 | |||
| 178 | return platform_device_register(&kzm_smsc9118_device); | 187 | return platform_device_register(&kzm_smsc9118_device); |
| 179 | } | 188 | } |
| 180 | #else | 189 | #else |
