From patchwork Tue Jun 26 10:22:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10488609 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 71DDC601A0 for ; Tue, 26 Jun 2018 10:24:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6860826E38 for ; Tue, 26 Jun 2018 10:24:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A10628606; Tue, 26 Jun 2018 10:24:21 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 3B99E26E38 for ; Tue, 26 Jun 2018 10:24:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934406AbeFZKYC (ORCPT ); Tue, 26 Jun 2018 06:24:02 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44818 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964840AbeFZKXj (ORCPT ); Tue, 26 Jun 2018 06:23:39 -0400 Received: by mail-wr0-f196.google.com with SMTP id p12-v6so15026130wrn.11 for ; Tue, 26 Jun 2018 03:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u5DqzgH5fpoGJX2DCfyjILWRGPoFwgDmrRb4Q1YR2bg=; b=EhKA3X6Ps8DiLi+BGbAxBfQ7/Pkiw+J12z67wTbxcg3B4/dN2UL1iKXSr90WaWhNss veEZ3mchUr7GKiSYNWq6nbeNW6f/bFzgp46lSu9db5UeUu9Hy5lxpfOscAIuzgebffZj g+udrsvbwzrVCAm00vxu90LOT4dVRU6ofog1YlmHrVf2uF8HY0B4goZxH0aqr1IsJDiu 1pWnYSbYt8muQMzx6kTOunCWd+s7+ILWmIjzrDSDpW9YI3GhAVMejS9DJv8PLg37AWse QyerLhDlstRZq4kRiaUFNa07ZV/GJFhcUJ/MiOjQ+ofdbKmy/gWo5Xk8f+/PuVIMHiAh sAhg== 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:in-reply-to :references; bh=u5DqzgH5fpoGJX2DCfyjILWRGPoFwgDmrRb4Q1YR2bg=; b=SMByl6lvXRPW5l6mLq2fGmTSp7CYxCfd6jZtplzwFMSKeRzao10Lx6ukpH1J1fHE+I 6NgdO2T29DbzxsJg+/B7u3eZeQzdkl2RFmUSCt8/biUh7LNOOS9v+4w4MuZD7uEbSW8c TlJ/H3fDaozQ5lcTIMefiBcLOd5eNdsAvo1WgChaLwSKLYKmMezB94we5TsI4UsWLxI4 N+QM6nho9W7JqOtU6ruKb9kLTi3hnkIyt6NuhqTkzu/7XDOXLgNVlOXgchHCNBRB2U7f ZzOPI0KnT7FDxy6gKfV98rpPs2d8wisLh8OhaEHQYTLmDR4PKDvDN+gVbVbpQn1Zhf5i 69eA== X-Gm-Message-State: APt69E1KhiXZx3gvoaow2w4ziReYSmq32g+eHfLfN5xzGaa3SdqcS9bt YNUrJprn/QheCzq/CGjJ3AYNeQ== X-Google-Smtp-Source: AAOMgpc1BvtZ/wGlVAZ4Y1WPa4KwmfNNoMEbcxXdlk2cxgI39BPATGKgCtPxnAeaiAgVsDLIEGfi2Q== X-Received: by 2002:adf:f3d2:: with SMTP id g18-v6mr883906wrp.279.1530008617911; Tue, 26 Jun 2018 03:23:37 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-NIC-1-55-10.w2-15.abo.wanadoo.fr. [2.15.147.10]) by smtp.gmail.com with ESMTPSA id 203-v6sm2573852wmp.23.2018.06.26.03.23.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 03:23:37 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , David Lechner , Greg Kroah-Hartman , Andrew Lunn Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 15/15] ARM: davinci: remove dead code Date: Tue, 26 Jun 2018 12:22:45 +0200 Message-Id: <20180626102245.30711-16-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180626102245.30711-1-brgl@bgdev.pl> References: <20180626102245.30711-1-brgl@bgdev.pl> 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: Bartosz Golaszewski There are no more users of davinci_get_mac_addr(). Remove it. Also remove the mac_addr field from the emac platform data struct. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/common.c | 15 --------------- include/linux/davinci_emac.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index bcb6a7ba84e9..0c6cc354a4aa 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -28,21 +28,6 @@ EXPORT_SYMBOL(davinci_soc_info); void __iomem *davinci_intc_base; int davinci_intc_type; -void davinci_get_mac_addr(struct nvmem_device *nvmem, void *context) -{ - char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; - off_t offset = (off_t)context; - - if (!IS_BUILTIN(CONFIG_NVMEM)) { - pr_warn("Cannot read MAC addr from EEPROM without CONFIG_NVMEM\n"); - return; - } - - /* Read MAC addr from EEPROM */ - if (nvmem_device_read(nvmem, offset, ETH_ALEN, mac_addr) == ETH_ALEN) - pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); -} - static int __init davinci_init_id(struct davinci_soc_info *soc_info) { int i; diff --git a/include/linux/davinci_emac.h b/include/linux/davinci_emac.h index 05b97144d342..19888b27706d 100644 --- a/include/linux/davinci_emac.h +++ b/include/linux/davinci_emac.h @@ -19,7 +19,6 @@ struct mdio_platform_data { }; struct emac_platform_data { - char mac_addr[ETH_ALEN]; u32 ctrl_reg_offset; u32 ctrl_mod_reg_offset; u32 ctrl_ram_offset; @@ -46,5 +45,4 @@ enum { EMAC_VERSION_2, /* DM646x */ }; -void davinci_get_mac_addr(struct nvmem_device *nvmem, void *context); #endif