From patchwork Mon Feb 28 17:39:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12763597 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1601DC4167E for ; Mon, 28 Feb 2022 17:54:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239018AbiB1Ryy (ORCPT ); Mon, 28 Feb 2022 12:54:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239542AbiB1RxJ (ORCPT ); Mon, 28 Feb 2022 12:53:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A89AAA9E15 for ; Mon, 28 Feb 2022 09:40:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C8AC6B815B4 for ; Mon, 28 Feb 2022 17:40:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C72B5C340E7; Mon, 28 Feb 2022 17:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646070029; bh=ESg1oCUkXYyZdUr21OHfuMpvFQwFDuGS2Dzxyknrqmc=; h=From:To:Cc:Subject:Date:From; b=VgxD7Ec70LMsQbtKKFYWmNv+QrZCGZeXdlifFkIIUfvdG9A/U4Oh2jP78sRVLjnVc C0hUKSQ1Rhl6q4FQgnyRTYTWmnG7z3HH1M/2UDY8Tqvq2dLrEZgLv6rlIYMAFC5WOt FICPj3hzjg+KndiL2//avGDB2nMcJQbdGJki3YV3sAkLPOS2T1jApRDSJdRwY3RUFR +WSxmAtZgtO5lFCDsFgtcvm6PKbte+nydgF8ilMWHIWKhOXIrcCptOc28I2873b/Vz Ktrjjlqp0yw4WVPhGydVJPi9ygxFlDKfm17vuX/+XJ5Tf+0MGCxZKbE/thS6yY/xGg vQXgHcO0c8W0A== From: Mark Brown To: "David S . Miller" , Jakub Kicinski , Yang Li , Joseph CHAMG Cc: netdev@vger.kernel.org, Stephen Rothwell , Mark Brown Subject: [PATCH] net: dm9051: Make remove() callback a void function Date: Mon, 28 Feb 2022 17:39:56 +0000 Message-Id: <20220228173957.1262628-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1345; i=broonie@kernel.org; h=from:subject; bh=b6Y6zCGZCFz/waAQX4B+4V9K+cYX4557jB2wyzoQ0NU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiHQcQS9rfMKEDLtN2F/34o7wYOp45cbAJsVp9pu8Q xSeKLa6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYh0HEAAKCRAk1otyXVSH0D7eB/ 92jvq6Qhzu1E7TL30/dCfsViTNmqYs8qr/hQckA3+hjRubGc6Sb5b+uJiypbQE1wdvY659hPdho9oe 5nIMm8rW2ah1b/reGnJsYbGFoBUZP8ZaSczsgagWrP7r3IHjKP2YpQFzA2+R08bh+aKGQcVWfWQ00b tp1nIERhq9woZ+HdG93Rh7yKZb7K+QPtHc2ydAXTesM1cy+cwH3Kmhx16rKcy9d6N0APVK1xRWgfTz SXfWJed+hbkr6D/mOy/2THWH7xOpECEWfoFdByFZcCXREslz/p4gzHzr2IezygsvwmEk/WvzQmb19u L4DLQsz85FHfVhxh1CrkNxfG+lXvaR X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Stephen Rothwell Changes introduced since the merge window in the spi subsystem and available at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void make the remove() callback for spi return void rather than int, breaking the newly added dm9051 driver fail to build. This patch fixes this issue, converting the remove() function provided by the driver to return void. Signed-off-by: Stephen Rothwell [Rewrote commit message -- broonie] Signed-off-by: Mark Brown --- drivers/net/ethernet/davicom/dm9051.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/davicom/dm9051.c b/drivers/net/ethernet/davicom/dm9051.c index b4b5c9c2a743..8ebcb35bbc0e 100644 --- a/drivers/net/ethernet/davicom/dm9051.c +++ b/drivers/net/ethernet/davicom/dm9051.c @@ -1225,15 +1225,13 @@ static int dm9051_probe(struct spi_device *spi) return 0; } -static int dm9051_drv_remove(struct spi_device *spi) +static void dm9051_drv_remove(struct spi_device *spi) { struct device *dev = &spi->dev; struct net_device *ndev = dev_get_drvdata(dev); struct board_info *db = to_dm9051_board(ndev); phy_disconnect(db->phydev); - - return 0; } static const struct of_device_id dm9051_match_table[] = {