From patchwork Tue Feb 8 19:43:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Salveti de Araujo X-Patchwork-Id: 541751 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p18JigIN024683 for ; Tue, 8 Feb 2011 19:44:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755478Ab1BHToi (ORCPT ); Tue, 8 Feb 2011 14:44:38 -0500 Received: from adelie.canonical.com ([91.189.90.139]:60431 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755207Ab1BHToh (ORCPT ); Tue, 8 Feb 2011 14:44:37 -0500 Received: from youngberry.canonical.com ([91.189.89.112]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PmtUK-0002Qn-SI; Tue, 08 Feb 2011 19:44:36 +0000 Received: from [201.82.64.149] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1PmtUK-0007HD-Br; Tue, 08 Feb 2011 19:44:36 +0000 From: Ricardo Salveti de Araujo To: linux-omap@vger.kernel.org Cc: charu@ti.com, "Mathieu J. Poirier" , Leann Ogasawara , Ricardo Salveti de Araujo Subject: [PATCH v2 1/2] omap3: beagle: adding regulator supply for vdds_sdi. Date: Tue, 8 Feb 2011 17:43:54 -0200 Message-Id: <1297194235-7376-2-git-send-email-ricardo.salveti@canonical.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297194235-7376-1-git-send-email-ricardo.salveti@canonical.com> References: <1297194235-7376-1-git-send-email-ricardo.salveti@canonical.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 08 Feb 2011 19:44:50 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 46d814a..685ac06 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -239,8 +239,10 @@ static struct platform_device beagle_dss_device = { static struct regulator_consumer_supply beagle_vdac_supply = REGULATOR_SUPPLY("vdda_dac", "omapdss"); -static struct regulator_consumer_supply beagle_vdvi_supply = - REGULATOR_SUPPLY("vdds_dsi", "omapdss"); +static struct regulator_consumer_supply beagle_vdds_supplies[] = { + REGULATOR_SUPPLY("vdds_dsi", "omapdss"), + REGULATOR_SUPPLY("vdds_sdi", "omapdss"), +}; static void __init beagle_display_init(void) { @@ -419,7 +421,6 @@ static struct regulator_init_data beagle_vdac = { /* VPLL2 for digital video outputs */ static struct regulator_init_data beagle_vpll2 = { .constraints = { - .name = "VDVI", .min_uV = 1800000, .max_uV = 1800000, .valid_modes_mask = REGULATOR_MODE_NORMAL @@ -427,8 +428,8 @@ static struct regulator_init_data beagle_vpll2 = { .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, - .num_consumer_supplies = 1, - .consumer_supplies = &beagle_vdvi_supply, + .num_consumer_supplies = ARRAY_SIZE(beagle_vdds_supplies), + .consumer_supplies = beagle_vdds_supplies, }; static struct twl4030_usb_data beagle_usb_data = {