Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5400369imu; Tue, 13 Nov 2018 06:06:35 -0800 (PST) X-Google-Smtp-Source: AJdET5fHUOk+sHbBeG5L5NKgs1qviFoftbN76OqTlJlVa+0GD49fZrR916XCR0imOpAdaMm7gyd5 X-Received: by 2002:a63:e516:: with SMTP id r22mr4979449pgh.256.1542117995832; Tue, 13 Nov 2018 06:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117995; cv=none; d=google.com; s=arc-20160816; b=WdY3NjLoBdLQnBv3uDyqszKqFONDWKLibGlLKERqs7HMflMrnkhbu8DjYddbeEL+gA tTrd8SSQIbZWTbQZsaEaMUW3UewSdehFZb9Q8RM+iji8PpyN9HmjtGA5gZCPeiUzFmBv xu/NVhiFaBtyoU3l2rXjkokLET5L1PTDrs6tvzCC8svjCHTiGYbPVClqSxho63dCwkxi Da0GaNGiVarDEw+NAgseADkFU7jAsuCN37OH2Z9+e5s/DMJKCvWYfXPey8/R0SojPmDO Czc7PgTOzBG74kvVpnNi4ZaTH6N5IhXJMfatgvm4+P/6TRs0XZ1hEqq/NN8+p4wm0Z3n Yn5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+MhstBAWAWTvjV+7n2ZSuyCNluyXHXlSjobSaNP/M+U=; b=DJjytWoY4xJ0Mn7MNF/RlUtnhZ8jr3XyWcyqrDSMpnnQqvksb2+si/sKjXVEjePotg PWAi6296YW9jJpoQcbnJ0AYfPjHf7C5VZSRETdCTSLHsZz6ZBYpcpsvVDU79h82fOLOn GY0JJlbIFJtPB10/LnxSisiF5j1OqDCUn/byxtk832Z4HGfnoiaFHmtoSQi/Ka241dOy FDqD2Vi9z0OSPXJ9c93pB6AxYvSf0Dc9+87XVP1/IzDBrMUffVS64joFua9S3bd2lZfY jjlQl0HvVU5EoRItxOIp23Wg1b0kBW8FyWGi2IZgHb9g/hDGP8zlwc/fNGdq+Kswn/jb deHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Sxu9i8eO; 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 u68-v6si7529122pfa.73.2018.11.13.06.05.47; Tue, 13 Nov 2018 06:06:35 -0800 (PST) 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=Sxu9i8eO; 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 S2388232AbeKNAB3 (ORCPT + 99 others); Tue, 13 Nov 2018 19:01:29 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33891 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388110AbeKNAAw (ORCPT ); Tue, 13 Nov 2018 19:00:52 -0500 Received: by mail-wr1-f66.google.com with SMTP id j26-v6so13441243wre.1 for ; Tue, 13 Nov 2018 06:02:35 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=+MhstBAWAWTvjV+7n2ZSuyCNluyXHXlSjobSaNP/M+U=; b=Sxu9i8eOfulldiOW2s6lrLD0kGLvUFXrjFvDiI91iV+FcVDZ5z1S8rnXXIv8CdlXM9 lx7GA9Lhz3RYE6o9IGN/Kx8eGTjTuaYpGeOJsqMuCGp2gRZIewhkzjKa3vUKlzEitboM U+nS7lvfka2Ql9lEEC2drCGonOpS8H4cJQEwb+/D5BMDeAfn9+R6j8LTsc2S/Piswvgg yldLYLgtyrfeZ4lf2mn0e8i/83PyeWv/54eYj7SOEyEcr5phSmlrKTD6B34cAJarXcl8 ACip3WuKeY4hnsSFwv/ZviaJ+Wsf0bnnIXrJUsgg7XO2ZomEIWERn0lxZxGRsNynSAfv 3gvg== 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:mime-version:content-transfer-encoding; bh=+MhstBAWAWTvjV+7n2ZSuyCNluyXHXlSjobSaNP/M+U=; b=h/YNSk7FaQCD+36N7eLX+LPDoQ5j8+xM6NOSfnSP3Hout2H26CTy1yG0AseWQEaBGT 1M2/gM85Kk0m6VEB0RKbHxFvPPsHA1aNVOLdTs66AJBy7TdWxrzgNU8p6KbzbDO5OGRk 41XTyj9IJW5cHRZSczpHiJpcE18a17NYakm7YHvn/Gjg34UyRX0RiC/2Edvj/V5VOOMM iZIp4Jsmx9HOPRUYSZk9z1k7ateFJbvwJOO4o9j52AOGG5PLvwH1DXp8fsAfWVwLifc8 IaZDJSajOhfZp063D3cdY637V6NCCpwsQ9XZuQbacVyjWf6so0/jqvvMakG44eY4gQWX nqQw== X-Gm-Message-State: AGRZ1gKTwOjzRlXwIgpWWOAhq4O9wx6Tdwbwh+nQ3xWrAOi8L093luil xx5oRn2TmXn45ei7uD4Dd02QYQ== X-Received: by 2002:adf:be0f:: with SMTP id n15mr2375313wrh.267.1542117754451; Tue, 13 Nov 2018 06:02:34 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id m69-v6sm16604122wmb.8.2018.11.13.06.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 06:02:33 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Nicolas Ferre , "David S . Miller" , Grygorii Strashko , Srinivas Kandagatla , Andrew Lunn , Florian Fainelli , Rob Herring , Frank Rowand , Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 22/25] ARM: davinci: remove dead code related to MAC address reading Date: Tue, 13 Nov 2018 15:01:30 +0100 Message-Id: <20181113140133.17385-23-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181113140133.17385-1-brgl@bgdev.pl> References: <20181113140133.17385-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/common.c | 15 --------------- include/linux/davinci_emac.h | 1 - 2 files changed, 16 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index e1d0f0d841ff..0c638fe15dcb 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -26,21 +26,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..28e6cf1356da 100644 --- a/include/linux/davinci_emac.h +++ b/include/linux/davinci_emac.h @@ -46,5 +46,4 @@ enum { EMAC_VERSION_2, /* DM646x */ }; -void davinci_get_mac_addr(struct nvmem_device *nvmem, void *context); #endif -- 2.19.1