mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
sh: add fixed voltage regulators to rsk
On rsk devices provide a dummy regulator for the smsc911x driver. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
48aff643d9
commit
1190ef9229
@ -16,9 +16,17 @@
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/mtd/map.h>
|
||||
#include <linux/regulator/fixed.h>
|
||||
#include <linux/regulator/machine.h>
|
||||
#include <asm/machvec.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
/* Dummy supplies, where voltage doesn't matter */
|
||||
static struct regulator_consumer_supply dummy_supplies[] = {
|
||||
REGULATOR_SUPPLY("vddvario", "smsc911x"),
|
||||
REGULATOR_SUPPLY("vdd33a", "smsc911x"),
|
||||
};
|
||||
|
||||
static const char *part_probes[] = { "cmdlinepart", NULL };
|
||||
|
||||
static struct mtd_partition rsk_partitions[] = {
|
||||
@ -67,6 +75,8 @@ static struct platform_device *rsk_devices[] __initdata = {
|
||||
|
||||
static int __init rsk_devices_setup(void)
|
||||
{
|
||||
regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies));
|
||||
|
||||
return platform_add_devices(rsk_devices,
|
||||
ARRAY_SIZE(rsk_devices));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user