From patchwork Fri Jun 2 22:52:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 9763669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E303260360 for ; Fri, 2 Jun 2017 22:52:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5B5027FA8 for ; Fri, 2 Jun 2017 22:52:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA2E0285C7; Fri, 2 Jun 2017 22:52:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F21427FA8 for ; Fri, 2 Jun 2017 22:52:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751389AbdFBWwj (ORCPT ); Fri, 2 Jun 2017 18:52:39 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35529 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbdFBWwh (ORCPT ); Fri, 2 Jun 2017 18:52:37 -0400 Received: by mail-lf0-f66.google.com with SMTP id v20so2712586lfa.2; Fri, 02 Jun 2017 15:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WLpjsnH5tdgVKgZxUWvLN1GiGNyZu0vCk9ou0oxnQAQ=; b=LAIWAbUbB/jzB93cDPUNZj1teyQaFATu9CzKNQUiB0qo76hc5MuVI0c0/zMS6qdGF+ /nYKiCqkB2dWT9gG5M1zsEnVEihEFCLP5OoGZS/9iL0aVoitQSqhhlNxkcMY10w9T6Ql dGSNQ9yytxvdtz0/aWcGf7HfWuehyAG1yy8P64I8/njGE2btDTmwyOMd1vz/DoUW97De MtWfsR4t0IEsxpIEWrtMMLwd5B35Cwr3+9Z6a/lKVy2ilX5aDOwlowAm3Gylfoj4STKS svGWVjFkNrRr6WgYoB66o3bA9RIVFlmiwjjUxafPyqTdRT4OSWOm/EZWVSnyvT4pcBMP uH7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WLpjsnH5tdgVKgZxUWvLN1GiGNyZu0vCk9ou0oxnQAQ=; b=PH8Y6NXuj1xhmpurs1W1aLbWGDbktrabmDEPfAArNtU4L1ZrK0dSgkoQ/hn/2qtvU7 KvqxvPEvoZzrt/IughwvsY6sRS43wYpd2ZUwKehQQOsr8kki6TtT0Yy5KL/pnyL3ktF/ 25Kja6mT6EpjFBTIr8tRZjgibITpj3a0UavsmwbtJoqDyoRjVAxgVhTmcGi0XRiT4iuJ YIds2lFzqIIBjstuvS84A65CEO14yFEXyEZa+gmxOs8b1NfKewj5eeuyXO4xobyoMC13 WYovS0TJ3CL69Ggdx3aVLoT3fl86PVzZF9W6R5vR2+OpR5BzOTqBXxZHRp4Rd+DwiceH fCrg== X-Gm-Message-State: AODbwcCjWWD2zIxVmAdCh9SEYPvUnBQUL4z0SU6zVFCAHdkdOWaEJTyO XSFNpfZTZ7/O1w== X-Received: by 10.46.21.16 with SMTP id s16mr2956819ljd.47.1496443955120; Fri, 02 Jun 2017 15:52:35 -0700 (PDT) Received: from localhost ([62.216.56.23]) by smtp.gmail.com with ESMTPSA id g9sm5283234ljb.12.2017.06.02.15.52.34 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 02 Jun 2017 15:52:34 -0700 (PDT) From: Ruslan Bilovol To: Tony Lindgren Cc: Roger Quadros , Felipe Balbi , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 resend] omap: usb: host: remove deprecated flags and structures Date: Sat, 3 Jun 2017 01:52:31 +0300 Message-Id: <1496443951-9158-1-git-send-email-ruslan.bilovol@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ruslan Bilovol These flags and structures are deprecated and there is no anymore users of them, so it's safe to remove them. Signed-off-by: Ruslan Bilovol --- Although this patch was acked-by Felipe Balbi and Roger Quadros back in 2013, it was never picked up by maintainers. Still applies to v4.12-rc3 and saves few bytes of memory include/linux/platform_data/usb-omap.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/linux/platform_data/usb-omap.h b/include/linux/platform_data/usb-omap.h index fa579b4..4c7acbe 100644 --- a/include/linux/platform_data/usb-omap.h +++ b/include/linux/platform_data/usb-omap.h @@ -38,34 +38,14 @@ enum usbhs_omap_port_mode { OMAP_OHCI_PORT_MODE_TLL_2PIN_DPDM }; -struct usbtll_omap_platform_data { - enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS]; -}; - -struct ehci_hcd_omap_platform_data { - enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS]; - int reset_gpio_port[OMAP3_HS_USB_PORTS]; - struct regulator *regulator[OMAP3_HS_USB_PORTS]; - unsigned phy_reset:1; -}; - -struct ohci_hcd_omap_platform_data { - enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS]; - unsigned es2_compatibility:1; -}; - struct usbhs_omap_platform_data { int nports; enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS]; int reset_gpio_port[OMAP3_HS_USB_PORTS]; struct regulator *regulator[OMAP3_HS_USB_PORTS]; - struct ehci_hcd_omap_platform_data *ehci_data; - struct ohci_hcd_omap_platform_data *ohci_data; - /* OMAP3 <= ES2.1 have a single ulpi bypass control bit */ unsigned single_ulpi_bypass:1; - unsigned es2_compatibility:1; unsigned phy_reset:1; };