From patchwork Tue Dec 9 22:27:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 5465331 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 064E6BEEA8 for ; Tue, 9 Dec 2014 22:28:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16B47201D3 for ; Tue, 9 Dec 2014 22:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1F2D201C8 for ; Tue, 9 Dec 2014 22:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753556AbaLIW2c (ORCPT ); Tue, 9 Dec 2014 17:28:32 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:39836 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387AbaLIW2b (ORCPT ); Tue, 9 Dec 2014 17:28:31 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id sB9MS34w016014; Tue, 9 Dec 2014 16:28:03 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id sB9MS3Ix000349; Tue, 9 Dec 2014 16:28:03 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 9 Dec 2014 16:28:02 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sB9MS2nc021630; Tue, 9 Dec 2014 16:28:02 -0600 From: Felipe Balbi To: Tony Lindgren CC: Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Paul Walmsley , Nishanth Menon , , Felipe Balbi Subject: [RFC/PATCH 7/7] arm: omap: hwmod: 43xx: remove sysc and class data Date: Tue, 9 Dec 2014 16:27:52 -0600 Message-ID: <1418164072-19087-8-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.2.0 In-Reply-To: <1418164072-19087-1-git-send-email-balbi@ti.com> References: <1418164072-19087-1-git-send-email-balbi@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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 now that this data comes from DT, we can safely remove them from this file. Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 61 ------------------------------ 1 file changed, 61 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c index 5c6c841..f990782 100644 --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c @@ -95,22 +95,10 @@ static struct omap_hwmod am43xx_gpio0_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class_sysconfig am43xx_synctimer_sysc = { - .rev_offs = 0x0, - .sysc_offs = 0x4, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO), - .sysc_fields = &omap_hwmod_sysc_type1, -}; -static struct omap_hwmod_class am43xx_synctimer_hwmod_class = { - .name = "synctimer", - .sysc = &am43xx_synctimer_sysc, -}; static struct omap_hwmod am43xx_synctimer_hwmod = { .name = "counter_32k", - .class = &am43xx_synctimer_hwmod_class, .clkdm_name = "l4_wkup_aon_clkdm", .flags = HWMOD_SWSUP_SIDLE, .main_clk = "synctimer_32kclk", @@ -318,13 +306,9 @@ static struct omap_hwmod am43xx_gpio5_hwmod = { .dev_attr = &gpio_dev_attr, }; -static struct omap_hwmod_class am43xx_ocp2scp_hwmod_class = { - .name = "ocp2scp", -}; static struct omap_hwmod am43xx_ocp2scp0_hwmod = { .name = "ocp2scp0", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -337,7 +321,6 @@ static struct omap_hwmod am43xx_ocp2scp0_hwmod = { static struct omap_hwmod am43xx_ocp2scp1_hwmod = { .name = "ocp2scp1", - .class = &am43xx_ocp2scp_hwmod_class, .clkdm_name = "l4ls_clkdm", .main_clk = "l4ls_gclk", .prcm = { @@ -348,26 +331,8 @@ static struct omap_hwmod am43xx_ocp2scp1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_usb_otg_ss_sysc = { - .rev_offs = 0x0000, - .sysc_offs = 0x0010, - .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | - SYSC_HAS_SIDLEMODE), - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP | MSTANDBY_FORCE | - MSTANDBY_NO | MSTANDBY_SMART | - MSTANDBY_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; - -static struct omap_hwmod_class am43xx_usb_otg_ss_hwmod_class = { - .name = "usb_otg_ss", - .sysc = &am43xx_usb_otg_ss_sysc, -}; - static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { .name = "usb_otg_ss0", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -380,7 +345,6 @@ static struct omap_hwmod am43xx_usb_otg_ss0_hwmod = { static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { .name = "usb_otg_ss1", - .class = &am43xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -391,22 +355,10 @@ static struct omap_hwmod am43xx_usb_otg_ss1_hwmod = { }, }; -static struct omap_hwmod_class_sysconfig am43xx_qspi_sysc = { - .sysc_offs = 0x0010, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_qspi_hwmod_class = { - .name = "qspi", - .sysc = &am43xx_qspi_sysc, -}; static struct omap_hwmod am43xx_qspi_hwmod = { .name = "qspi", - .class = &am43xx_qspi_hwmod_class, .clkdm_name = "l3s_clkdm", .main_clk = "l3s_gclk", .prcm = { @@ -421,23 +373,10 @@ static struct omap_hwmod am43xx_qspi_hwmod = { * 'adc/tsc' class * TouchScreen Controller (Analog-To-Digital Converter) */ -static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = { - .rev_offs = 0x00, - .sysc_offs = 0x10, - .sysc_flags = SYSC_HAS_SIDLEMODE, - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | - SIDLE_SMART_WKUP), - .sysc_fields = &omap_hwmod_sysc_type2, -}; -static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = { - .name = "adc_tsc", - .sysc = &am43xx_adc_tsc_sysc, -}; static struct omap_hwmod am43xx_adc_tsc_hwmod = { .name = "adc_tsc", - .class = &am43xx_adc_tsc_hwmod_class, .clkdm_name = "l3s_tsc_clkdm", .main_clk = "adc_tsc_fck", .prcm = {