Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4513391imu; Tue, 8 Jan 2019 01:19:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN4K5EJIqspKirMoZpgtw1fmqTfQCW90OiUyJeOdJJ0EGeeAinXY6KW/E6r14vGAf3a36+fx X-Received: by 2002:a63:5723:: with SMTP id l35mr815758pgb.228.1546939180607; Tue, 08 Jan 2019 01:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546939180; cv=none; d=google.com; s=arc-20160816; b=igSPiIoRJlQCYITy1QFF86BMxuNPSNUYc38Q/d+URRUdqWN7G9kc1L59srMxy/kodn 8aPq6OtWZepcISPljI/BnprMHWmtAO+ncqEiYWJeTvBk80D3ZYQF7/OpKnS4y7g089hy yilEtEoe0P/d5bmVFYWjAwwGYntHksRYGg66znQY8kdopSl7AbMxlq+XssnwTUy923pV WtKSz+++PeUIwHT+EzeyFeOQTkDKDnG/3lJjtLoBlKMCwj0OXXBeISX3wCZb7X0RwNU8 n0L8v11tDNjSB2FlxlQieoyolpOF02Nj4bxh+EprxQWg+cZhmsFRsTpXo1ZPhpG/cSV6 PvPw== 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=NJIaXCnj1mL5f9We7TvWx1zvERGWdZdXfDLcBBhPs+I2Ny4AaUENffJc7EwFhD5TaP RR15ysA8ferxG3LCPFC7NXfB+ybH8J13C46evYTR9kp7O5m5vGI5KwIXRfR+DzLNVcA0 vwzobYGborbIsuxvNG2ZxFYc4i+/UoeG36Xi330AfdYLEKnBzJq5FrqmQ3BstbV3A9pB kXZQuK3duzAsha9GgIWgq2QcZVfzpboHv93qHMZivGaxAZWYbyxY1ABnVS2EF0jm34TO ESnvV9jrPUHBDdo/mJ3R5aPA1VZ+YyNRC/yT1iZLyuIwDyU6fTdU6f3Brx6HCw4IgiHU 70gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=VCmoxz1p; 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 v34si64140338plg.205.2019.01.08.01.19.25; Tue, 08 Jan 2019 01:19:40 -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=VCmoxz1p; 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 S1728193AbfAHJPy (ORCPT + 99 others); Tue, 8 Jan 2019 04:15:54 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:33975 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbfAHJPv (ORCPT ); Tue, 8 Jan 2019 04:15:51 -0500 Received: by mail-ed1-f66.google.com with SMTP id b3so3486687ede.1 for ; Tue, 08 Jan 2019 01:15:50 -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=VCmoxz1pe8h/sCGOr3KE6kn1KAUvQMv/IMN3cHZ8CxFJAX8ZoYfa9qdzywShv+V5AQ hr+JNNFpfcD28S2hAGOhUjsLvRJuVvrtJOpd5LGTjDA1bKeeCqVaJ0Lb/L4rGRz4QQdw Nnf4YQzeACIcW2byxB59y0Tt8VlZCI7yiOKAJv+3S2ouyuInFPMwWUvBAk29+AN6scWd Xch8QI5vrJumKZBKZQSaeUoZcibSLEXPDx5JBwxU9IbaBVyE0qh5mA+mHi89wWWHzJTR AUPz3k40FqCfQRdMH2XpnNkyKpKzuTYkP2891kux7HXVs/KpeB2rEhqx6SxHuIrK/RUR FvXw== 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=d550NWod271MuuIQUqt4lkvcB/E/HWsVbFR6HSHr6hduwWckbtK2PeMtQFXkVBQeqp KcMP54jImf0VqqY//sMdbisRZq5Hvqh3+6mAgDdaU0qImDjpxJIil6zlr90GcVjMT6HU TCefFGtpfONn/iE+Sf2q9jBTvDiHaSs6Q4WpJTxdmlB2jV/LTT//FPUBMdYj4XWmFdAY xJpUZkacDRYIn9BD6ZHxEeO/BXq0yFe3QfH/p/Sj350lNNWN+w/cuDYvBUahvIVkGblc IQsCU6Cv6N4KWeaEG2mQliZsdrUp67NpGAeZt3hSGW7KfwxPBAUg8QrfUeMQoo8llyCM 0okQ== X-Gm-Message-State: AJcUukeo8Spdje4QoTvjw1Zk99iKKKRitYCgzGoacAT5aGX3z0kraiop SHO740/LSliw0oVKxmTk7hBenQ== X-Received: by 2002:a50:b3c9:: with SMTP id t9mr1314567edd.270.1546938949770; Tue, 08 Jan 2019 01:15:49 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 01:15:49 -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 01/12] ARM: davinci: da850-evm: remove dead MTD code Date: Tue, 8 Jan 2019 10:15:28 +0100 Message-Id: <20190108091539.16674-2-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 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