From patchwork Thu Apr 5 09:55:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7654 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A4E4723ED0 for ; Thu, 5 Apr 2012 09:56:03 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5CB19A1867B for ; Thu, 5 Apr 2012 09:56:03 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2131028iag.11 for ; Thu, 05 Apr 2012 02:56:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=dgRwOzgmavCrwTSPH5S0U7/mrTmlpu6Ob8ovL8GkzEY=; b=MaAplnlUzRnrVy+QHTkCkCfHimyfVnLvvm8wcDlu2aKTO5qJ0ch5UdOspiDB08v3RI HuGyXEU9MBzwf710d96IRnTAIgu3ZALE3wMTE08jgpi0YQjMx37FFo+iOvpkt0iSIDR+ dxQih0Kvnr4/LXJ5v5Lo61NFegOSEFCXR0zTSQbKmk5Bt+XJo+waDEov7jonipV1KM6Y N8VFnyYkOlq2VNdEMAbx2PMKwH/cpS2ZHu8lOf/NHcOW8sDcAemlNLBj5hQQRNqreJkF bc1uZvvN1t7GqM4Q0pjvwWtDHubH/snInTmiuuRAW2Ky3grHY+owDeXtyAC1KFNBwjKT /XsA== Received: by 10.50.173.35 with SMTP id bh3mr4162376igc.38.1333619763105; Thu, 05 Apr 2012 02:56:03 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.164.217 with SMTP id f25csp52722iby; Thu, 5 Apr 2012 02:56:02 -0700 (PDT) Received: by 10.216.133.9 with SMTP id p9mr1346070wei.9.1333619761178; Thu, 05 Apr 2012 02:56:01 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id y43si3743958weq.58.2012.04.05.02.56.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 02:56:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by wibhq7 with SMTP id hq7so924954wib.13 for ; Thu, 05 Apr 2012 02:56:00 -0700 (PDT) Received: by 10.180.83.72 with SMTP id o8mr3278672wiy.5.1333619760490; Thu, 05 Apr 2012 02:56:00 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id e6sm12308845wix.8.2012.04.05.02.55.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 02:55:59 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, linux@arm.linux.org.uk, Lee Jones Subject: [PATCH 1/7] ARM: ux500: New DT:ed snowball_platform_devs for one-by-one device enablement Date: Thu, 5 Apr 2012 10:55:42 +0100 Message-Id: <1333619748-16126-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1333619748-16126-1-git-send-email-lee.jones@linaro.org> References: <1333619748-16126-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnAYb0x5PO3SKbkBnxhUTuRrIWSjoayB+mJBpOb/NrMwjdX8fn7+KnaR+YArz7pVcuNnC90 During Device Tree enablement it is necessary to remove snowball_* platform_data segments one at at time, as and when particular devices are DT enabled. This patch provides a temporary solution. Once this new struct is empty it will be removed again. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 77d03c1..29e0ade 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -609,6 +609,13 @@ static struct platform_device *snowball_platform_devs[] __initdata = { &ab8500_device, }; +static struct platform_device *snowball_of_platform_devs[] __initdata = { + &snowball_led_dev, + &snowball_key_dev, + &snowball_sbnet_dev, + &ab8500_device, +}; + static void __init mop500_init_machine(void) { struct device *parent = NULL; @@ -786,8 +793,15 @@ static void __init u8500_init_machine(void) mop500_sdi_init(parent); } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { snowball_pins_init(); - platform_add_devices(snowball_platform_devs, - ARRAY_SIZE(snowball_platform_devs)); + + /* Devices to be DT:ed: + snowball_led_dev = todo + snowball_key_dev = todo + snowball_sbnet_dev = todo + ab8500_device = todo + */ + platform_add_devices(snowball_of_platform_devs, + ARRAY_SIZE(snowball_of_platform_devs)); snowball_sdi_init(parent); } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) {