Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp969813imm; Wed, 8 Aug 2018 08:37:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwlt3C2BPBWP09FC3dLfDvXby7nrfXpJAiY8PM3wvuPn+IFrTTv7n77XZmbz116V2whI4/K X-Received: by 2002:a63:4f63:: with SMTP id p35-v6mr3048749pgl.167.1533742676910; Wed, 08 Aug 2018 08:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533742676; cv=none; d=google.com; s=arc-20160816; b=Q7vOxaSwJ+a8P/noSXlEkY9AEJztPJ2Z0lhHuslwyfz085zdUadfEIfKvNEdbKsfVg s4nClXwHxx7OkF+iOekQtK0LcIn8rP6dl8lVOK3wZC2tXvv8kdwyfK887I5T3fiNf/oL vc89qjlJhH+L8UF6K6cO4IIYPpl1z9G+6IAbSD4D0YNJ7kTkcRCP2Gh0/GqQxththBSi VkAYE1GNK9tG4Dbnx44pYFByyDMwlhc/JDf6vW4+qF1SupRKonc2Vl4zV8WxQtNwTrDh qsL0DdfQuUm39Qp5u/OWMHJj9Q3qu4fwrFkyo1kQjSULqeWvHqxpd4eE0RUhu9fdrL9O RROQ== 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=r2kUHt8xOX/X/PnpUK/Av4k3yjo3y+RVMVX0DZ8RBXo=; b=PLA0hJU0leXb0bZk7TackVCIUebDIbqA0iMWw2tMiLeHNG/EhkAAXem2KlqII9gIQ8 MKVg0/i+CMxLpE8j1lbAE11NjXBucDbv2XbbJVOyWud45I2dSJdIc9DLX59p+dY1Lp5P wrt8XwiDD02DsdeCY6zaYKi4SDGMLOGeEiZgY6/Qy6OiaSvPtTllYd/EX1llppfLjChR Ym38ydQYA6nca+62fD6BPQeppMBWkti87O46ue0NqLWjIt9zySWTqfzPUqLT/xs+KsxT tN35mGTvdxPvs7CZU2fPBLyH7Y70IsHo9DO77B2Q0nXR57n7DdVHtkkNyv9V7bu9QdrH impw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ty1U12OI; 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 w4-v6si3346662ply.481.2018.08.08.08.37.42; Wed, 08 Aug 2018 08:37:56 -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=ty1U12OI; 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 S1729742AbeHHRyO (ORCPT + 99 others); Wed, 8 Aug 2018 13:54:14 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:50934 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729708AbeHHRyM (ORCPT ); Wed, 8 Aug 2018 13:54:12 -0400 Received: by mail-wm0-f52.google.com with SMTP id s12-v6so3207986wmc.0 for ; Wed, 08 Aug 2018 08:34:01 -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=r2kUHt8xOX/X/PnpUK/Av4k3yjo3y+RVMVX0DZ8RBXo=; b=ty1U12OIvJhucNMEEeu9RaGvSZYf2d++pZdLnz+E54lJZfZRkI2ckP5SFmcK9F6ilz o2plWvwtgtEuNQuoar/L1oF7v8fOHBhwL9dj00S6Pi5SgZ7bDTYDJCrwfGy17JSqzUVe jQP01x3EYvua4MYEa2McyyKS61z91Ziw9sXMt0EIcuC+h12NUy3Ybsa+HnoH9xAxFH90 2cki2+r1ZfQeg+9jNBG8yRdnqhaf4GxNs+HnxvNdzJgOFDijrG71b86nEdo2+BtTyPwT XIIAvNq0+e74emyAxBh28Pq6TMQddvYsSdtSMzNPK/KqAyCd7cCzIo3xB/mS4lyO1YB8 WdPg== 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=r2kUHt8xOX/X/PnpUK/Av4k3yjo3y+RVMVX0DZ8RBXo=; b=cCffvGfD4m/eOhpnwPhGd//piJxGLbT95vincqk047JbLbPJGxw+p2xIjM5BBTxvTr ShZJaW7tdx0X3jAk4LM5WvcpKd7a/JvvQE+2q8PPj53/kTf4nta9/WQQ7y+SPOz+XXT+ leeE1I/i7/FEJITL8wiryxOb71F1U7W2ebr40g30MbN65MAvQGiLq7yqyJJIK0toEmJj /XLNusKwLIdgKZ4MJ82fXmkDkVOidYLW7pYWe6a8iXKFMQiypMagqDyyCfgm0/yPHg/Q RFIsIIVhpvAaUDyYeT4fQcTwBv/PMTHE1wLIkqhZx3+pL15aEewmK8gOqBVbv+1GuTM7 5jwA== X-Gm-Message-State: AOUpUlEUugqzv0teRGndweiU+YmfAelAjqB8wADhEC/SnbEo8KuTE1xT 98hJPtZ6ZDjodufpcynkJC65Cw== X-Received: by 2002:a1c:5c93:: with SMTP id q141-v6mr2225441wmb.133.1533742440530; Wed, 08 Aug 2018 08:34:00 -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.33.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 08:33:59 -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 17/28] ARM: davinci: da850-evm: remove dead MTD code Date: Wed, 8 Aug 2018 17:31:39 +0200 Message-Id: <20180808153150.23444-18-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 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 521a26b5c20d..1df796b67b82 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -137,32 +137,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", @@ -1470,8 +1444,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.18.0