mirror of https://gitee.com/openkylin/linux.git
ARM: ux500: Remove empty function u8500_of_init_devices()
As promised, now all devices which resided in u8500_of_init_devices() have been enabled for Device Tree, we can completely remove it. Acked-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
d4999b19d9
commit
1e74043a29
|
@ -217,15 +217,6 @@ struct device * __init u8500_init_devices(struct ab8500_platform_data *ab8500)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MACH_UX500_DT
|
#ifdef CONFIG_MACH_UX500_DT
|
||||||
|
|
||||||
/* TODO: Once all pieces are DT:ed, remove completely. */
|
|
||||||
static struct device * __init u8500_of_init_devices(void)
|
|
||||||
{
|
|
||||||
struct device *parent = db8500_soc_device_init();
|
|
||||||
|
|
||||||
return parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
|
static struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
|
||||||
/* Requires call-back bindings. */
|
/* Requires call-back bindings. */
|
||||||
OF_DEV_AUXDATA("arm,cortex-a9-pmu", 0, "arm-pmu", &db8500_pmu_platdata),
|
OF_DEV_AUXDATA("arm,cortex-a9-pmu", 0, "arm-pmu", &db8500_pmu_platdata),
|
||||||
|
@ -284,7 +275,7 @@ static const struct of_device_id u8500_local_bus_nodes[] = {
|
||||||
|
|
||||||
static void __init u8500_init_machine(void)
|
static void __init u8500_init_machine(void)
|
||||||
{
|
{
|
||||||
struct device *parent = NULL;
|
struct device *parent = db8500_soc_device_init();
|
||||||
|
|
||||||
/* Pinmaps must be in place before devices register */
|
/* Pinmaps must be in place before devices register */
|
||||||
if (of_machine_is_compatible("st-ericsson,mop500"))
|
if (of_machine_is_compatible("st-ericsson,mop500"))
|
||||||
|
@ -297,9 +288,6 @@ static void __init u8500_init_machine(void)
|
||||||
else if (of_machine_is_compatible("st-ericsson,ccu9540")) {}
|
else if (of_machine_is_compatible("st-ericsson,ccu9540")) {}
|
||||||
/* TODO: Add pinmaps for ccu9540 board. */
|
/* TODO: Add pinmaps for ccu9540 board. */
|
||||||
|
|
||||||
/* TODO: Export SoC, USB, cpu-freq and DMA40 */
|
|
||||||
parent = u8500_of_init_devices();
|
|
||||||
|
|
||||||
/* automatically probe child nodes of db8500 device */
|
/* automatically probe child nodes of db8500 device */
|
||||||
of_platform_populate(NULL, u8500_local_bus_nodes, u8500_auxdata_lookup, parent);
|
of_platform_populate(NULL, u8500_local_bus_nodes, u8500_auxdata_lookup, parent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue