From patchwork Tue Aug 3 11:40:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 490904 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp563824jap; Tue, 3 Aug 2021 04:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVEqVT2Ah4pBPX1C3GH0elYSmHJa33xpmwcSBsI43t5HcKblbw+v2Y05illhKSXzEk8Oj0 X-Received: by 2002:a17:907:98b9:: with SMTP id ju25mr14133257ejc.290.1627990883998; Tue, 03 Aug 2021 04:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627990883; cv=none; d=google.com; s=arc-20160816; b=HEVO0wQej5ifhWZ4gUrve0w/CutW1OnG80U+b4iUCZFpgUZTEKlz4KXOCJowptCSmu 6lMRZY+pCpAru8UHnB1LOIr/NaPA1iotFgD9z9vAFqES9n7T/zFv14ATXxLqSBEWHrQG WwrI7rT9oASS8kOffIYVG0ZJWQMstrcBEbE+vgYtpnGtySIIvyj6QnfywWr4sYaJYkCG JLw5PqUr32sVAsAbdwWzCZoZkrCCq1llJqqrORuFU4J4QI0hFaAfzK+nO8NZvaJP0JDI 8Q9tHNgInQXjqMbJKbd0HNIlmYgNvBoNoxcrhmoKwQ7lWVhKpSHw3W5Lz+s/ygnKgWPx ju4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OEy+l2QY/tPapNzBuhCSRtjvEjPxvi8APoFXG/sMnJc=; b=LV0B5XkIo2QH1Z8dk0pudKz/W0Dc+pgAjrwyNtkHOtDgxJM+RTBPMGguR14km4h9ZS QEHr3/TLdv2y2RMa4IdGQIeJSnEGGH6Ak2fXP49Ta5nsGOL8cWujlEc4+7SbqEj4r9JY tR8jOV9Ll6ph7xDEvB4lsQZQ9JkAJYZYwYDgUrwSovbUYZPcLB118SO5YwrjIC5vwC8l r/npkQB3Ci0mUL7Mc8nR/UymRvww6ToiyOMgUSdJ1/fUMFC15hppRZibDKPs/HeEQnxU bNZJ8vw30qys9zl6C2/sYo+0LlDqjyLzN3Pff18s/LYYK8FzP6IkYfBZ4Z3SSNT7Da13 kjWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R767e3tf; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq37si2054489ejc.56.2021.08.03.04.41.23; Tue, 03 Aug 2021 04:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R767e3tf; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235897AbhHCLlc (ORCPT + 8 others); Tue, 3 Aug 2021 07:41:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:33000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235823AbhHCLl0 (ORCPT ); Tue, 3 Aug 2021 07:41:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AFEDB60EE7; Tue, 3 Aug 2021 11:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627990875; bh=Thy3xh0aPPD4aGsyyWrTD32Yur4vUloVpUXX/JJXgWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R767e3tfwtgVNR/UpjhGi7A8Q/+DCMDwU7yDhAw0Ot+vBvoTkj6kWlbc4f4C+dh9f Q87859jnN+oOAv2K6GSEkkrJl23k3hOD4eV9vMbHRRE7fgklOhRR1EGgbfDJ8jev7W ixbq9HIAZgSQGgudq1P5dmfOF2j+EhAFIeY268bulut5jLn6eZUWg3kt74tbBSQFSA 1icpaPmu3wdWPuFXiSnzj40CWSUuOSfIQu8OfzY2S5ScZq05EsE07qk5NBwH8e6eH9 NglrHoUVTWesrrtFVnbco/8T5zFNMEyGXDxHqR+PqKSPQchVFN4V5VKR0mnvuLne3t tpqSB9cv5LmPg== From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , "David S. Miller" , "Maciej W. Rozycki" , Alexei Starovoitov , Andrew Lunn , Andrii Nakryiko , Bartosz Golaszewski , Christophe JAILLET , Doug Berger , Eric Dumazet , Finn Thain , Florian Fainelli , Geert Uytterhoeven , Jakub Kicinski , Jessica Yu , Michael Schmitz , Paul Gortmaker , Sam Creasey , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v2 02/14] [net-next] natsemi: sonic: stop calling netdev_boot_setup_check Date: Tue, 3 Aug 2021 13:40:39 +0200 Message-Id: <20210803114051.2112986-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210803114051.2112986-1-arnd@kernel.org> References: <20210803114051.2112986-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann The data from the kernel command line is no longer used since the probe function gets it from the platform device resources instead. The jazz version was changed to be like this in 2007, the xtensa version apparently copied the code from there. Fixes: ed9f0e0bf3ce ("remove setup of platform device from jazzsonic.c") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/natsemi/jazzsonic.c | 2 -- drivers/net/ethernet/natsemi/xtsonic.c | 1 - 2 files changed, 3 deletions(-) -- 2.29.2 diff --git a/drivers/net/ethernet/natsemi/jazzsonic.c b/drivers/net/ethernet/natsemi/jazzsonic.c index ce3eca5d152b..d74a80f010c5 100644 --- a/drivers/net/ethernet/natsemi/jazzsonic.c +++ b/drivers/net/ethernet/natsemi/jazzsonic.c @@ -193,8 +193,6 @@ static int jazz_sonic_probe(struct platform_device *pdev) SET_NETDEV_DEV(dev, &pdev->dev); platform_set_drvdata(pdev, dev); - netdev_boot_setup_check(dev); - dev->base_addr = res->start; dev->irq = platform_get_irq(pdev, 0); err = sonic_probe1(dev); diff --git a/drivers/net/ethernet/natsemi/xtsonic.c b/drivers/net/ethernet/natsemi/xtsonic.c index 28d9e98db81a..ca4686094701 100644 --- a/drivers/net/ethernet/natsemi/xtsonic.c +++ b/drivers/net/ethernet/natsemi/xtsonic.c @@ -215,7 +215,6 @@ int xtsonic_probe(struct platform_device *pdev) lp->device = &pdev->dev; platform_set_drvdata(pdev, dev); SET_NETDEV_DEV(dev, &pdev->dev); - netdev_boot_setup_check(dev); dev->base_addr = resmem->start; dev->irq = resirq->start;