From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/7] ARM: ux500: Remove platform specific device registration when DT is enabled
Date: Thu, 27 Sep 2012 16:12:06 +0100 [thread overview]
Message-ID: <1348758726-25336-8-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1348758726-25336-1-git-send-email-lee.jones@linaro.org>
Most devices have now been successfully DT:ed and each supported
platform has its own Device Tree source file. Hence the majority
of the platform specific device registration calls can now be
successfully removed.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/mach-ux500/board-mop500.c | 29 +----------------------------
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 38e53b2..5dd4a59 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -793,8 +793,6 @@ static const struct of_device_id u8500_local_bus_nodes[] = {
static void __init u8500_init_machine(void)
{
struct device *parent = NULL;
- int i2c0_devs;
- int i;
/* Pinmaps must be in place before devices register */
if (of_machine_is_compatible("st-ericsson,mop500"))
@@ -804,37 +802,12 @@ static void __init u8500_init_machine(void)
else if (of_machine_is_compatible("st-ericsson,hrefv60+"))
hrefv60_pinmaps_init();
+ /* TODO: Export SoC, USB, cpu-freq and DMA40 */
parent = u8500_of_init_devices();
- for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
- mop500_platform_devs[i]->dev.parent = parent;
-
/* automatically probe child nodes of db8500 device */
of_platform_populate(NULL, u8500_local_bus_nodes, u8500_auxdata_lookup, parent);
- if (of_machine_is_compatible("st-ericsson,mop500")) {
- mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
-
- platform_add_devices(mop500_platform_devs,
- ARRAY_SIZE(mop500_platform_devs));
-
- mop500_audio_init(parent);
- i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
- i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
- i2c_register_board_info(2, mop500_i2c2_devices,
- ARRAY_SIZE(mop500_i2c2_devices));
-
- } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) {
- /*
- * The HREFv60 board removed a GPIO expander and routed
- * all these GPIO pins to the internal GPIO controller
- * instead.
- */
- mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
- platform_add_devices(mop500_platform_devs,
- ARRAY_SIZE(mop500_platform_devs));
- }
-
/* This board has full regulator constraints */
regulator_has_full_constraints();
}
--
1.7.9.5
next prev parent reply other threads:[~2012-09-27 15:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 15:11 [PATCH 0/7] Next instalment of Device Tree work for ST-Ericsson Lee Jones
2012-09-27 15:12 ` [PATCH 1/7] ARM: ux500: Elaborate on SDI device node names in Device Tree Lee Jones
2012-09-27 15:12 ` [PATCH 2/7] ARM: ux500: Add SDI (MMC) support to the HREF " Lee Jones
2012-09-27 15:12 ` [PATCH 3/7] ARM: ux500: Correct Snowball's external SD/MMC slot's bus width Lee Jones
2012-09-27 15:12 ` [PATCH 4/7] ARM: ux500: Create a DTS hierarchy for ST-Ericsson's HREF boards Lee Jones
2012-09-27 15:12 ` [PATCH 5/7] ARM: ux500: Create a Device Tree for early HREFs Lee Jones
2012-09-27 15:12 ` [PATCH 6/7] ARM: ux500: Add support for gpio-keys and Proximity Sensor for HREF Lee Jones
2012-09-27 15:12 ` Lee Jones [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-10-01 10:43 [PATCH 0/7] Next instalment of Device Tree work for ST-Ericsson Lee Jones
2012-10-01 10:43 ` [PATCH 7/7] ARM: ux500: Remove platform specific device registration when DT is enabled Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348758726-25336-8-git-send-email-lee.jones@linaro.org \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).