Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp968241imm; Wed, 8 Aug 2018 08:36:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxfplffqXiP1q8UUjhlY4JF2tw/bjyu1PojnmhBIILFc1lfOspaOOoZyFgAgXT2TWISRZYI X-Received: by 2002:a65:5641:: with SMTP id m1-v6mr3150345pgs.246.1533742582389; Wed, 08 Aug 2018 08:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533742582; cv=none; d=google.com; s=arc-20160816; b=E2xaqUVrW2kJzAupzXFHJ9deqpki7U1yCSx2ZRvkVU6BPSRmps3XWUhVwtxjFDJeuW aTJXczSRptuMtSuMh8gmnVnbjtrrnmanFH+JujjhdP8ftNq1ffXajZoQg0o0zeGmanzh FJbXfeasGd1hwag7keZap14FPwPXca5yTApZe2V4Pt5tbIqZP4fpZaELxv80uyMaNLSk H+2h5qpFYcQNfillP0C08IjjgLeNDMtRRnt1qgFQyTO+Hal/EA20KQ/cy4j4lZpeeKDW pB+fF+YC1M5X2pzfX3k9oSDv8esAp/qT3Hodm1vOElxaaOPDDswsZ2ChgJcgHRMKwv35 0uyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=M7UsCvqnFt3W2bHK6DWe4k8iaOUKf7rLaco+g4nZ2Ys=; b=G9Qi2Dy+O89ZHwj3fNTYFdFI5HO3g3av9aH1HHPBlNU/8WvcV3mKk6piGOQiQiEfW4 hPW2tfPBi0mvTufG3nkOnYQVPOqVUQ77RutzQCyj6I2mKkTDgPE+Hoet4UeRPprs7rOG HrdceQOWkx9iDKsNo7gZ8KHl/jCB/Ix3rYWV9whDlhW2HIr0tMtvI2dXnKCJNZnC+idS tjdCJ6tOwsieRk3ldBRw7F+NV71VDlIqaH+DmS8OxcXpHZcaRE1vk7bpe18DLQ2GnwCY tmIcIad8H8ukjp1B+hwwAzY8oY9aIsIfu4joAvKDoJxDwb6S2DX9UL0kJHJMEdZEtkpK miSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=wQ5VJBcv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si3849432pge.74.2018.08.08.08.36.07; Wed, 08 Aug 2018 08:36:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=wQ5VJBcv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730382AbeHHRyb (ORCPT + 99 others); Wed, 8 Aug 2018 13:54:31 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43688 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730262AbeHHRya (ORCPT ); Wed, 8 Aug 2018 13:54:30 -0400 Received: by mail-wr1-f68.google.com with SMTP id b15-v6so2390797wrv.10 for ; Wed, 08 Aug 2018 08:34:18 -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=M7UsCvqnFt3W2bHK6DWe4k8iaOUKf7rLaco+g4nZ2Ys=; b=wQ5VJBcvYrRS7XzApI6Ewk7Yh2aHYbgtfXrwvfm6MshVgyVhbPGV1/DwqQOiM80HmY Zix+HKApykFghM20kd+OAmvTLf7cCkmrnFOq/QvXfVsiPCGP/qtkgheug2QgJb5NMfLu KQz8yku0bHglBxhO2GL5ytkdZoz/X6nH2WmpLuO/SQVEEbDrsNH+Tf/UGbL3yrYGTZFZ e/8ixazqAbSEsisLFAzsYrTV8znqB4ARnUZ+g42md/LHwFdm4s4nN0uwKl/6swegoftM DvwSihE17QCX/CohxEJIE1jSmL/8jLFZx1G82ngk/+ynEDVjic/VKQisVIP6NAFAquIS vxbQ== 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=M7UsCvqnFt3W2bHK6DWe4k8iaOUKf7rLaco+g4nZ2Ys=; b=HnVekOcyoxiFnCifOERPLCsUsBDfKGvLCCZHap6Azpc8EceKNEaDnKfbHgJKwjhYCW rtt71MfUuteZv53ihopRzoevsE2rm3l+2DpFuzXbrFlD06KaFz18hCHnWmI+43wWCaAi 7giBygV+XT/13wgpvVR4K6za2FdZoJNScWQkaby0tH/RPLz2QBKBi6DQN7Zh3chNZ/86 4TetnQ0bDxe8dD7mWQZy5AdRHGoMvAvY7Mo788c8aVwX4gL4lH9xc16xGThXXVCJYvBu LMBQcOYgyzN97D9TqGynkewZfcN5Sw29aCXcmiZEd62jBRQUQTDxqxzVTJl7dULW/p+L E+PA== X-Gm-Message-State: AOUpUlEVAA0RSOAIu18Bga0db6sSZgW7SECQC+wRORGrqn/zTMxIBPP1 OHSF9x1zWTcwa5tCpCRlxNGhbQ== X-Received: by 2002:a5d:4cc5:: with SMTP id c5-v6mr2365511wrt.210.1533742458304; Wed, 08 Aug 2018 08:34:18 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-MAR-1-609-89.w90-118.abo.wanadoo.fr. [90.118.185.89]) by smtp.gmail.com with ESMTPSA id s2-v6sm5240915wrw.52.2018.08.08.08.34.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 08:34:17 -0700 (PDT) From: Bartosz Golaszewski To: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , Andrew Lunn Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 25/28] ARM: davinci: remove dead code related to MAC address reading Date: Wed, 8 Aug 2018 17:31:47 +0200 Message-Id: <20180808153150.23444-26-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180808153150.23444-1-brgl@bgdev.pl> References: <20180808153150.23444-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.18.0