mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
ARM: armadillo5x0: 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>
This commit is contained in:
parent
ccdf327843
commit
7a4302a6a1
@ -38,6 +38,8 @@
|
|||||||
#include <linux/usb/otg.h>
|
#include <linux/usb/otg.h>
|
||||||
#include <linux/usb/ulpi.h>
|
#include <linux/usb/ulpi.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/regulator/machine.h>
|
||||||
|
#include <linux/regulator/fixed.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
@ -479,6 +481,11 @@ static struct platform_device *devices[] __initdata = {
|
|||||||
&armadillo5x0_smc911x_device,
|
&armadillo5x0_smc911x_device,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct regulator_consumer_supply dummy_supplies[] = {
|
||||||
|
REGULATOR_SUPPLY("vdd33a", "smsc911x"),
|
||||||
|
REGULATOR_SUPPLY("vddvario", "smsc911x"),
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Perform board specific initializations
|
* Perform board specific initializations
|
||||||
*/
|
*/
|
||||||
@ -489,6 +496,8 @@ static void __init armadillo5x0_init(void)
|
|||||||
mxc_iomux_setup_multiple_pins(armadillo5x0_pins,
|
mxc_iomux_setup_multiple_pins(armadillo5x0_pins,
|
||||||
ARRAY_SIZE(armadillo5x0_pins), "armadillo5x0");
|
ARRAY_SIZE(armadillo5x0_pins), "armadillo5x0");
|
||||||
|
|
||||||
|
regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies));
|
||||||
|
|
||||||
platform_add_devices(devices, ARRAY_SIZE(devices));
|
platform_add_devices(devices, ARRAY_SIZE(devices));
|
||||||
imx_add_gpio_keys(&armadillo5x0_button_data);
|
imx_add_gpio_keys(&armadillo5x0_button_data);
|
||||||
imx31_add_imx_i2c1(NULL);
|
imx31_add_imx_i2c1(NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user