Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5399661imu; Tue, 13 Nov 2018 06:06:03 -0800 (PST) X-Google-Smtp-Source: AJdET5edftcVRuuZHloZv/vK65R85g3KE6fJTWSRvRX/G0B15Bixjnp8afp6DX4Wa7F/ugixCkru X-Received: by 2002:a17:902:b78b:: with SMTP id e11mr5175073pls.90.1542117963207; Tue, 13 Nov 2018 06:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117963; cv=none; d=google.com; s=arc-20160816; b=GC5Rabl65qVb5WxZajIyfPdjr7ksugQ+MD1PPjSAZx8+LP8R1eQkNJo1PNkqUNIXmT eWZV0k2cOZYHp+J7uJJ/xQI1IL37y2MZFQy2Z+AD2EQy64uaOOXZh/jH7tiqyJbHoD60 EKQ3ztxMVIoRa5ZES5jf7xTcmDGxSNC7E19rUTO1qtAziymRFqWqdgmoRT0/P+v3gU/V QU0MF+EdptZtkjliPed2UAeeDfuv14LmSJNp7V5aGcV1OYFOF64Z/CQjUVOslDE99dHO yCGqtHfSgYrffj9xWXeuOSODDmUmbQczlHEtKei1Totf9vvEqd+kz5kA+wwxhqrLQuwd civA== 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=OoIJe4mIDvTgdZuFApCm4Rth6o5WcRAhu1RpXcDbEn4=; b=wUiOoCd4GeakW4N+VXwWJvOUR6tn0vTWRFFAJW2Yamn7AZDRJGljP8aYdK17bBCzAt vYxbikW2u1uiH5czYBv+hI9zx79dEHBuxnAA7F75qTD/pr0WYS3FYO821eJ8qA73wyjj y4z+TftML7d/DgJKBmuRAOWR6FycmjHH2/tGI4jeNNgoGu09rmvx8phQOW4F5GNBjzXq J7KQFrAWurk9+5qc+cR+sodKge8SMwt7r/s8aboWy1TPqPP0QoME4ei13kzbGC3oWxQn +6oNWYKHrpYhxX9jfs1AIfjTcm++hMFHUSeIK7icuEo7+u2iKnCX1KctfRo0Maa0zaNf GCYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=I63cr+tb; 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 y22-v6si1541904pfa.169.2018.11.13.06.05.23; Tue, 13 Nov 2018 06:06:03 -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=I63cr+tb; 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 S2387982AbeKNAAj (ORCPT + 99 others); Tue, 13 Nov 2018 19:00:39 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50872 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387883AbeKNAAh (ORCPT ); Tue, 13 Nov 2018 19:00:37 -0500 Received: by mail-wm1-f68.google.com with SMTP id 124-v6so12121123wmw.0 for ; Tue, 13 Nov 2018 06:02:19 -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=OoIJe4mIDvTgdZuFApCm4Rth6o5WcRAhu1RpXcDbEn4=; b=I63cr+tbCx/td55Gvhzg57rRGVH/mP7GtwF3VQsJ+v0oIhaEfYxqxReO3Cv/96MVZC E3WqUkG/YivISQ+MKMYdujDmHFek7v09UbndzW1jCRO7lSbtmbMHgNqLTOtCp+ILUpCJ wiFeYVmMa8w+D5Jtk8MPRItODnXt6oNU10b6A9NNlxfexfGDTl95uOQv6+ikrFnTEmBd I6ZBmA9XehvRbIRABqf7mFEzURQ7fRoDStQnGkPa4PgT95zy0s78ItpZkILPGXwBugkd PYarMYhnWnfPCKu/1C8ADlyP0pWtGHy3pLxW8zskbMJAOcA3E93F6aUJGU7dMhG5F7td gchQ== 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=OoIJe4mIDvTgdZuFApCm4Rth6o5WcRAhu1RpXcDbEn4=; b=RqiA/sPxcV+aQ2VFpO2vXjfxr0GO2wIwZhRZqRHqGJYBaN6aCOk2ZwCdQ5433PC9fj wUlkwsAENx0i2S/SluESImT+URWq9OIdQ4wc03MpgsVEd3MUC44ffDHSDpIu/M1h4M+H rmAjvJM9Cf4jNArXniwBtwCBwCUe6ygEEiwgh9KBvkoW6pksuMXqAE7QZQekDxSQ6uvv cbcl42XVoRPIwWt9Pl+7+VP8BwB9l4gIIlJKEWcIv3+AMWcxjFH67TvXzo/BIPvq/0+m hm80WO+LL8F6cX2JsNLm8C89VUWz8ytrFOtRXT7imhm2GyIiyj+3dL8CiMLdgwQhUMMm 6v9Q== X-Gm-Message-State: AGRZ1gIIOMpnBa4xVDgpvkSZw5/DVY7uD474oNEfRlnsCXvB7ck5esLU ai96S32gBc5K3HV2Qtx48S7QjA== X-Received: by 2002:a1c:38c5:: with SMTP id f188-v6mr3269398wma.19.1542117739313; Tue, 13 Nov 2018 06:02:19 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 06:02:18 -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 14/25] ARM: davinci: da850-evm: remove dead MTD code Date: Tue, 13 Nov 2018 15:01:22 +0100 Message-Id: <20181113140133.17385-15-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 We no longer need to register the MTD notifier to read the MAC address as it's now being done in the emac driver. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-da850-evm.c | 28 ------------------------- 1 file changed, 28 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 6a29baf0a289..128dd7d8dff6 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -150,32 +150,6 @@ static struct spi_board_info da850evm_spi_info[] = { }, }; -#ifdef CONFIG_MTD -static void da850_evm_m25p80_notify_add(struct mtd_info *mtd) -{ - char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; - size_t retlen; - - if (!strcmp(mtd->name, "MAC-Address")) { - mtd_read(mtd, 0, ETH_ALEN, &retlen, mac_addr); - if (retlen == ETH_ALEN) - pr_info("Read MAC addr from SPI Flash: %pM\n", - mac_addr); - } -} - -static struct mtd_notifier da850evm_spi_notifier = { - .add = da850_evm_m25p80_notify_add, -}; - -static void da850_evm_setup_mac_addr(void) -{ - register_mtd_user(&da850evm_spi_notifier); -} -#else -static void da850_evm_setup_mac_addr(void) { } -#endif - static struct mtd_partition da850_evm_norflash_partition[] = { { .name = "bootloaders + env", @@ -1494,8 +1468,6 @@ static __init void da850_evm_init(void) if (ret) pr_warn("%s: SATA registration failed: %d\n", __func__, ret); - da850_evm_setup_mac_addr(); - ret = da8xx_register_rproc(); if (ret) pr_warn("%s: dsp/rproc registration failed: %d\n", -- 2.19.1