Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4512927imu; Tue, 8 Jan 2019 01:19:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7A1jqwGSkSJyge9ygZ+/McpQHrtFJbv+W5AmfCVpCVkKNX+J3Ze1P+YIU6ZUwMIMtWUPQX X-Received: by 2002:a17:902:292b:: with SMTP id g40mr1003055plb.82.1546939142505; Tue, 08 Jan 2019 01:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546939142; cv=none; d=google.com; s=arc-20160816; b=GSJbwH/dHAeW8GC9NtG5D7VmCleeL45J+xv/TkmDnVVSmYTWvVwHmJDCqB0YNVKjHG vx3DdVAL9IKczeJdB0LKK85gvH/P/lOSw4g7nliUcm8mFtrN1GTOyuGWUflLMpXlrniH 9MJ17KftrIEWM8ah4x3z7YzNvHYHD8iItPB+7ewcB+lXQnyM7HXJBXjtR2Oj1UIe3J9T tqdrOz7cny8UBNrMbgCUKb7D478hE7kwqMSf7lxXyTsSC7uTUbXWhlF0geeftaoGdiLJ 1avAHGaDttRt1GGNxUx4f61wyO48ERm6n3YmXLcR2hdYtzTRqrNrAEE/YuiwUPF8xeOY ZCpA== 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=XLaNLsXyZTMJa9Z949w9uGhI2ACDnJIDviQw0cxYTZCeXhJXROvZWHbgmpUAL5QwOh QKTlde/F5Fk5ekLKvt50ObUNMz1mVAW9RIBYjiZemza66q/NFej68VEkdcr3p7RENaAw Q6K14BfqYndOOLF1R3f2JcVrfpCQ7tbQuNTtB4phQuph6fCcq1J0bCxzbxfwA8fHfNIp r1M95para9GQC9cBO7S3rqFq9qms2Wja7aNFHBeTqnMw8UhvuExALlWQKWBoldfmyuqp QNLLkpkg6HjsYsmyPv3DK9zTaUaSZAOINmGQhe4gTxNa3oCB8R7O1LFsg8LnJrlU9lZL 1qqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=vL1UmvsI; 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 cc16si11479858plb.377.2019.01.08.01.18.47; Tue, 08 Jan 2019 01:19:02 -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=vL1UmvsI; 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 S1728368AbfAHJQH (ORCPT + 99 others); Tue, 8 Jan 2019 04:16:07 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35938 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728315AbfAHJQC (ORCPT ); Tue, 8 Jan 2019 04:16:02 -0500 Received: by mail-ed1-f67.google.com with SMTP id f23so3468083edb.3 for ; Tue, 08 Jan 2019 01:16:01 -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=vL1UmvsIz4oOviOGu+y+fZ41BRFcWkeVgw9i9KziXEqHwOil6iPVYRonWegCiwd+DN ggp5Yl4L2DeT0q/ObFz5IXAfU8oaOaUcUouHk7h8AKxnZwimoYHKMDf2tgDMvqiKgeua eszgwAtSq7jr148OK9Aq39mMTNgIzfzrnNWXaag5g93ov+7s9SQCtIClM+SL4X9Mgast KrLIH7CEnEbrPE+ZFfRXiu6I6C/FjCMRclkUdoNLyDs4XKIgwo9l7WqUjN7DpKBHV+I0 N4CMvD1OxojhZG1GzkfQn+ofpUZF5bkMK7Ae8yBMjXkjF9hBikyiKtVnzeELun3TPDkZ nzbQ== 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=U4KVEMspEmSAkJ+MDbXcZ/l1SDsbT2EbbpRev3fc/jZciMTLOy0hvUbVyjOh/ddcIP DiYt1/7689O4YZ7wvKzurozYIAGpTgKdjTNXnotiy96T7+RAmJKbzjk885aXXS6014hp Zpu+8KCpR2UCCV6/xD4YtHaLdxpwz7JzjpX2eVhRV91R2qtiiM1FfLQmef0nhff1MEvd vyr3mhza/ZhIylC7zpIMQ/Am5x1k9DyQI459hL97RhuAVrQ+GphqukyutORz8yQTQSv0 5AEoQVRjdrmvaWoegndO++V5uDnpWmfm1fly6+8TQBX6Pv6Gplhg6oeKiMnq6cDrVgS7 iXWA== X-Gm-Message-State: AJcUukdSFh25yQAwex5Jnvv7twBv4iL0gGcrm17gnGpGvUk3I591EObz XRrQZya0uNV/dSVR5QsgBKOG6A== X-Received: by 2002:a17:906:32c6:: with SMTP id k6-v6mr1199646ejk.48.1546938960756; Tue, 08 Jan 2019 01:16:00 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id gp22-v6sm18373560ejb.4.2019.01.08.01.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 01:16:00 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, Bartosz Golaszewski Subject: [RESEND PATCH 09/12] ARM: davinci: remove dead code related to MAC address reading Date: Tue, 8 Jan 2019 10:15:36 +0100 Message-Id: <20190108091539.16674-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190108091539.16674-1-brgl@bgdev.pl> References: <20190108091539.16674-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