From patchwork Sat May 15 22:13:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 439453 Delivered-To: patch@linaro.org Received: by 2002:a02:b78d:0:0:0:0:0 with SMTP id f13csp1437342jam; Sat, 15 May 2021 15:14:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcXG7PanGA/IfFKzUJLQ0Lmh+YEiwrtdhhbM6nHqPkzrHv77our000GogERkX9EE20c7G3 X-Received: by 2002:a05:6e02:548:: with SMTP id i8mr43119183ils.69.1621116894369; Sat, 15 May 2021 15:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621116894; cv=none; d=google.com; s=arc-20160816; b=qNJ3SgMQ128sWOhMOp453r7iPvQf6oo9RMWdZODfGL8I6Qn2VKPv1UMy6dcwP0CR+m D851QojUzbHBnE+dAOsIdCUV9ZDkN3u8lWs/wQ487+o6gk23oF8JoJj/R50xCPYJnMlT dwFDhyZyjQ7R634NAn3JiZvEkQGtUXxLoJln/DBf1hdgUYuu9TxwQ1WLM2IMavIfHUU0 H48HSaVUCMkkJZ9QCpUDYmL14O14UgXQ9p5LiNw5nv2AAe+Dgn4W5Ba9KbNeR6sL4PNa JLKzF98+On9IYNvAlpYEcEU/+HugPSrNgvNhuK2w7os3Gvsy4L6kCddwxN2P3I9yM6jy ik2A== 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=u7gzTL3XfZRoddasH8QXsrCxTd1JLYfaRQNTpJ6DTbW+jCdFqcOZWt8jB0Se3gWrYq OeNrlcOPj+S/XBGcYazp7TKEWls5Vx4xs5+AWYixQ2TSbGKAquMNZ0ULA6Ta0M7n4vF3 PKFhoPjiYTGPT+pphZ2m36tJUu+a8asvMAvWQwDDT/qYq9OWJJvqmXDRm96UGK8j3k3D AhP5F+NAssY5Yi8jsv0DSQ8WyKnmIXHgmBBI33wFbfP9to3fuYvaryYhPv5TJ03zooaA WemZJimo4/+07uv8W2sDtXQj+Is88OgFV3aMb8vFAMlpoqggBO5nvoUXVmHwvYJ3BDjP +zMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fbVEe/DG"; 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 n6si13185172jal.41.2021.05.15.15.14.53; Sat, 15 May 2021 15:14:54 -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="fbVEe/DG"; 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 S235202AbhEOWP7 (ORCPT + 8 others); Sat, 15 May 2021 18:15:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:46806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235212AbhEOWPt (ORCPT ); Sat, 15 May 2021 18:15:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1AA9F6135C; Sat, 15 May 2021 22:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621116875; bh=Thy3xh0aPPD4aGsyyWrTD32Yur4vUloVpUXX/JJXgWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fbVEe/DGhS8d5Qv/oEkgSM5JApOmsgtbPRaGoKUnS/1pnw3O6mFa+WLuoJ0fFRYxA 2pieWtDuy63d0yUaYRhoHgwCbjoq9lQgonVrKAQOFHpMLJoso7ybTxkRNVuo8iifNa XEdVUs2f+jqnqsct2GyczVdq4wLi+qUj2kr4vVoE7jLh521nMZ/aE/XlgwJVqrr2Ap 4elrazHohuE0dDYLmjF64bmdU9LJw8IVZ6VGaEFsf4iTTg1AfuuYen4caOawMZHigm /X4jn/TFJbupdMh37NjdUIDbix3WGeRTSxAjwQcgoq09XpEpcrNgVW5RB2MB3wZLtO uBAZaGjIU1sEA== From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , Paul Gortmaker , "Maciej W. Rozycki" , "David S. Miller" , Jakub Kicinski , Doug Berger , Florian Fainelli , Sam Creasey , Geert Uytterhoeven , Finn Thain , Christophe JAILLET , Andrew Lunn , Alexei Starovoitov , Eric Dumazet , Andrii Nakryiko , Bartosz Golaszewski , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [RFC 02/13] [net-next] natsemi: sonic: stop calling netdev_boot_setup_check Date: Sun, 16 May 2021 00:13:09 +0200 Message-Id: <20210515221320.1255291-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210515221320.1255291-1-arnd@kernel.org> References: <20210515221320.1255291-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;