From: Russ Dill Subject: [PATCH 09/13] Add dummy smsc911x regulators to omap3evm. Date: Wed, 21 Mar 2012 22:19:50 -0700 Message-ID: <1332393594-23993-10-git-send-email-Russ.Dill@ti.com> References: <20120321194133.GP9859@atomide.com> <1332393594-23993-1-git-send-email-Russ.Dill@ti.com> Return-path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:35468 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754567Ab2CVFUi (ORCPT ); Thu, 22 Mar 2012 01:20:38 -0400 Received: by mail-iy0-f174.google.com with SMTP id z16so2617327iag.19 for ; Wed, 21 Mar 2012 22:20:38 -0700 (PDT) In-Reply-To: <1332393594-23993-1-git-send-email-Russ.Dill@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org Cc: Tony Lindgren , Mark Brown , Matt Porter , robert.marklund@stericsson.com, linus.walleij@linaro.org, Russ Dill , Russ Dill Signed-off-by: Russ Dill --- arch/arm/mach-omap2/board-omap3evm.c | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index a659e19..6a5e57c 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -114,15 +114,6 @@ static struct omap_smsc911x_platform_data smsc911x_cfg = { static inline void __init omap3evm_init_smsc911x(void) { - struct clk *l3ck; - unsigned int rate; - - l3ck = clk_get(NULL, "l3_ck"); - if (IS_ERR(l3ck)) - rate = 100000000; - else - rate = clk_get_rate(l3ck); - /* Configure ethernet controller reset gpio */ if (cpu_is_omap3430()) { if (get_omap3_evm_rev() == OMAP3EVM_BOARD_GEN_1) @@ -632,9 +623,15 @@ static void __init omap3_evm_wl12xx_init(void) #endif } +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x.0"), + REGULATOR_SUPPLY("vdd33a", "smsc911x.0"), +}; + static void __init omap3_evm_init(void) { omap3_evm_get_revision(); + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); if (cpu_is_omap3630()) omap3_mux_init(omap36x_board_mux, OMAP_PACKAGE_CBB); -- 1.7.9.1