From patchwork Thu Jun 28 14:32:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10494135 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6BA6760230 for ; Thu, 28 Jun 2018 14:38:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 556E12A0A2 for ; Thu, 28 Jun 2018 14:38:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49C702A0BE; Thu, 28 Jun 2018 14:38:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CA0D2A0BB for ; Thu, 28 Jun 2018 14:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966506AbeF1Oht (ORCPT ); Thu, 28 Jun 2018 10:37:49 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:39699 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966660AbeF1OdV (ORCPT ); Thu, 28 Jun 2018 10:33:21 -0400 Received: by mail-wm0-f42.google.com with SMTP id p11-v6so9265955wmc.4 for ; Thu, 28 Jun 2018 07:33:21 -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=DEaxIuyp3QkNsGvwkhtanL8JC1vLeKQqMPNhy3Q8tDs=; b=rYUbDYXAESyGZhud6wVUsCMxXA64DgiihWrRg7hfXDFhsFqiXpoMXMqtqNY4Qj+e3a DWUuCmFOI5sk7CXPvEzxp6F187Q7AvkcYVhM3RDCdJCSc+tT1/5nVvuxZavYnLUcH/T4 8JPrqQstfEbhU+vNbK4QswKRizfZK71vLBP57CsJ/K7K18GWpi+5ILXS/dtPfh40+xan VHLqESRrTFpwfBzeg4qjMGMBdJyjmHi514TepWL0m2QvCiX0Cx9C3vzqlhI7c3dniVn3 f4+ILARf9pgs2uN2WkdiePhp7b3YiWWG6MqDWQWoQEfQMC8JvlEwEEhNRFRd/LWVtJ0X C0+g== 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=DEaxIuyp3QkNsGvwkhtanL8JC1vLeKQqMPNhy3Q8tDs=; b=OT+C+W3ACkBEyu3ngCVRE5lUyf2cBZeeTzXJfNa5HSflcYXw39PsIvSH1P9hxqJJ9i jX8rL+L+DeJunZ3IoTKVNK6G/bENWC95+5tn87rhPIXJcAV15aNPywfT/pn7HTEr4rOz 5Qq4xBN2oNd6f7uVohmtsbbbCRqiVHdG0dWtAHEQ36Pq0oXveHzy/iuUTXhBeO56Akov d5D+pDVDha3ef6ChoREIv05rxROOKOl6xOpmGe8zXWURw3fU9yFv6QTKwsgMEDIMilG2 BNhRj7MBA1tChuNwovhUqm1cD9+H81kCjOzY6zc3glqkwS4paoJ3QHT+RSH3xP8EMFA7 2FMA== X-Gm-Message-State: APt69E0VR3ydgVSUhQb5KCSqGuy7q3rVafGtU2SlPGJBDDd+9tNjWjQX 4TjE3sM5nqj5IqeO5TivsI2XhQ== X-Google-Smtp-Source: AAOMgpfdeGg1oYmghhUf7S3HYjsHBtmzW3yPxdM0r4e85pnurMCqIk0hawdLgpJ1zCmSRw7kNTu4Yg== X-Received: by 2002:a1c:aa12:: with SMTP id t18-v6mr8181011wme.54.1530196400411; Thu, 28 Jun 2018 07:33:20 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-87-41.w90-86.abo.wanadoo.fr. [90.86.29.41]) by smtp.gmail.com with ESMTPSA id 4-v6sm8037499wmh.14.2018.06.28.07.33.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 07:33:19 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , David Lechner , Greg Kroah-Hartman , Andrew Lunn , Jonathan Corbet Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 09/18] ARM: davinci: da850-evm: remove dead MTD code Date: Thu, 28 Jun 2018 16:32:35 +0200 Message-Id: <20180628143244.4561-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180628143244.4561-1-brgl@bgdev.pl> References: <20180628143244.4561-1-brgl@bgdev.pl> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 address. 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 e22fb40e34bc..4de075458d83 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -124,32 +124,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", @@ -1455,8 +1429,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",