Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3004427imm; Fri, 10 Aug 2018 02:00:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzI8R1guDmSpB28Slp4CqIbjqmloQvh6lxtfVIcBNJCIILZ5+iZBxiSwMt7DhLjQ0U/9REF X-Received: by 2002:a62:5290:: with SMTP id g138-v6mr6238435pfb.46.1533891652048; Fri, 10 Aug 2018 02:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533891652; cv=none; d=google.com; s=arc-20160816; b=s+9Uogk95QCXKMcgvF7Qjrv4Bex1mrS/Cr1YhB614tvqPMvC3374klUduS7H3XqYe/ L4lvT7EPGAYDXun9nI/CMw/VQzh9u4nyrm7asrirME6YN5GWcyT59ItSV9OBzsPDkSiF 5yHG2twNLdeJpooa2zVxs7BBkNKs9PydHCfXsnko6q2o13NDVqvDV8NeDtM0cTtJ6Ya4 ASwDjJSLqBgIzvved4WtS5vzQcXxUa5Uc0JzLltF7ymA7hGkyehh3FHnTFGu78tIwM38 dhf/5pz1Kiff3/WXTcsNLN3D0cKKXHV58KQ42+puytzOXx06PpirYF+8IqLGwZ7LmO99 4xVg== 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=sjgu7qb4J3qUAYZhJ+TbkGZpr8RdiNxsBue+6q45drtQlsHaHNtBwyegUIA+wFX3UZ IxQv5x08CIYJUhE1FaXpxvjO2t0dASGEXlk917+rtRtjmQVzq7U8+GxCQFZ+TSccGhLg BcEbNRUEJeOKVMjXrJZ/MO4bfagyNykSXr94XdoVNUCokYDXvl7mHN6GMt75Z7cenodE 6NjQCeYGJriQwxNuVJjunq0db1OsnsQ69woo+tWYeM0qVwg9BX7FQ9MvuwA08Pb+5ZsR ftB4cbVztGGGsFoeLiVa9mIO7ooX4p6+4hbAv2i10316Y8Z704fKpKdJzmG1cLwNTAWO 0gYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=1IezMsPv; 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 d41-v6si2363628pla.172.2018.08.10.02.00.37; Fri, 10 Aug 2018 02:00:52 -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=1IezMsPv; 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 S1728489AbeHJKey (ORCPT + 99 others); Fri, 10 Aug 2018 06:34:54 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:55942 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728363AbeHJKew (ORCPT ); Fri, 10 Aug 2018 06:34:52 -0400 Received: by mail-wm0-f44.google.com with SMTP id f21-v6so918287wmc.5 for ; Fri, 10 Aug 2018 01:06:07 -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=1IezMsPvfeCSNwxz/W7g8guUWIj1MlKn1Y/XH0QHuzFMya6wnUXorRPiYypsD6lbLg gFHq/HzljmuSs7G/4V66s0jCYV/eX55xvrzDQFbLzXBfTSQ6bx5akAyYMzK2+rSdgnLE 2syRCvvfjtYgr5FSpZG1euQg55osIUDpajdFLgLu/9GA+6uHpzcADzpxeeAaECNPVjMd 8qLN2ZTufzsNa6IsRDTCd3tFKm2w6zazU6l2lxEVxVHmht4uK4hu/cK6H2bbp8X1/lxg RxxwhI+KPGkpj8IqzGLlOI4lpgpM8XpHXOHFKFGkjO6nTIAPM7UqMhWaNBOudfwVLM2K SuqA== 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=h0Vt5OCgkDewFOCk3Zu4DaPYKdeTiA4GIU09ZY8/5Nr2RCXzGkmx3Ca5nFEe/L3zjW tpX+wF5hecByL3NSyoh/o3W7PSAARVHNnYp66fKYZQhJmoimS9b8MScX3CliskvaZIyt WClt6LmzbKEGdp7iuiiNKBGd/hwhZ5YyuelDoTvBQj+GQMD+v8vS6JhCdAHnR+J0WExl HVX/jainlYHanAqXRMU2q3NODotVXAMOj09mOe6SrPlLbIMGzJXEIFDxeqNE4X6FpKxw P8F8szrBdaRbD5P4nyOV2qmyIDudT/JAO4mhrj+FbCIF58C4Lay3TYkO/nkaGXx7CWsD fIUw== X-Gm-Message-State: AOUpUlHJ5i9Oq6yyk4f15E2CamCamHsbroQE0aXxRLtZcv+bDasoliLn p+XCHLuF1aZyCUHQRaUHxormyg== X-Received: by 2002:a1c:af53:: with SMTP id y80-v6mr746588wme.55.1533888366699; Fri, 10 Aug 2018 01:06:06 -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 h7-v6sm9546405wrs.8.2018.08.10.01.06.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 01:06:06 -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 v2 18/29] ARM: davinci: da850-evm: remove dead MTD code Date: Fri, 10 Aug 2018 10:05:15 +0200 Message-Id: <20180810080526.27207-19-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810080526.27207-1-brgl@bgdev.pl> References: <20180810080526.27207-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