From patchwork Mon Apr 18 17:43:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 8874231 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 500739F441 for ; Mon, 18 Apr 2016 17:43:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D109201C8 for ; Mon, 18 Apr 2016 17:43:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A03B201DD for ; Mon, 18 Apr 2016 17:43:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752900AbcDRRn1 (ORCPT ); Mon, 18 Apr 2016 13:43:27 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:37470 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbcDRRn1 (ORCPT ); Mon, 18 Apr 2016 13:43:27 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id u3IHhMxd010299; Mon, 18 Apr 2016 12:43:22 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id u3IHhMe7007036; Mon, 18 Apr 2016 12:43:22 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Mon, 18 Apr 2016 12:43:21 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id u3IHhLd3023952; Mon, 18 Apr 2016 12:43:21 -0500 From: Grygorii Strashko To: Paul Walmsley , Tony Lindgren CC: Lokesh Vutla , Tero Kristo , , Grygorii Strashko Subject: [RFC PATCH 2/2] ARM: OMAP2: dra7: remove davinci mdio hwmod Date: Mon, 18 Apr 2016 20:43:17 +0300 Message-ID: <1461001397-25446-2-git-send-email-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1461001397-25446-1-git-send-email-grygorii.strashko@ti.com> References: <1461001397-25446-1-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Davinci MDIO hwod perform only one function now - registers "fck" clock alias for MDIO functional clock. From all other points of view it's fake: it's part of cpsw and do not have clkctrl or sysc registers. Hence, its safe to remove it now, because "fck" clock is added in DT for Davinci MDIO node explicitly. Signed-off-by: Grygorii Strashko --- See comments to patch 1. arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 9442d89..32b6ca2 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -331,20 +331,6 @@ static struct omap_hwmod dra7xx_gmac_hwmod = { }; /* - * 'mdio' class - */ -static struct omap_hwmod_class dra7xx_mdio_hwmod_class = { - .name = "davinci_mdio", -}; - -static struct omap_hwmod dra7xx_mdio_hwmod = { - .name = "davinci_mdio", - .class = &dra7xx_mdio_hwmod_class, - .clkdm_name = "gmac_clkdm", - .main_clk = "dpll_gmac_ck", -}; - -/* * 'dcan' class * */ @@ -2607,12 +2593,6 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = { .user = OCP_USER_MPU, }; -static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = { - .master = &dra7xx_gmac_hwmod, - .slave = &dra7xx_mdio_hwmod, - .user = OCP_USER_MPU, -}; - /* l4_wkup -> dcan1 */ static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = { .master = &dra7xx_l4_wkup_hwmod, @@ -3486,7 +3466,6 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_per2__cpgmac0, &dra7xx_l4_per2__mcasp3, &dra7xx_l3_main_1__mcasp3, - &dra7xx_gmac__mdio, &dra7xx_l4_cfg__dma_system, &dra7xx_l3_main_1__tpcc, &dra7xx_l3_main_1__tptc0,