Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp534315pxb; Thu, 21 Jan 2021 13:10:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmd7SLD5djl3+V/x9VbKIzSE9fgXSBzUHoReCOD+7KcqDOjIIpDWAu3/ccXNW6v4kYdsgt X-Received: by 2002:a17:906:3885:: with SMTP id q5mr930280ejd.105.1611263457978; Thu, 21 Jan 2021 13:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611263457; cv=none; d=google.com; s=arc-20160816; b=B42EP4KxzPt0ApB82I6rtshNUnRAHRzzB8IXjlk1mqpc/2bAO6HN0Xl1m8fCCb2Ekb h8CrDGljPkWn9urdq/R0Vsgspighzgw6/KoINvT7ECfvl8/Mp4+7O1yJ40FKSZ5/GFYO in7hZyiefFr15FQdjC5rX5Lno0nqDtwY6gnh1l4u+fnDmw9DAnzbde9Hxj/DE+NvkEmI TIhsAhT333tXRqHDclJl5NO0TBkm9DuRUUHn1CevvABtucZYACt+Q1cyygh0ofEHhqD/ CuxskE0z2tXD85tTMsA/wSxr5/ib3k4e1sEq/qPwehC+1W3KPt27/OR5FooyGLCrUMsm jivw== 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 :message-id:date:subject:cc:to:from; bh=jD8wOJjq2BaB6t8WHlbSJKzJen9oarAfJhkWiOXlgBk=; b=jjo9hWEXzV249WfDzEF1S+9fP3WFa3TvNd4PQqCbh3C2ecOKBqiWsPc69nmdHlTNsd D/5PFALgq2oXCREklzEd0dElT2rzIT+1iAOQlilOmZkG23Au87Vb1BPbp0L6tS5eFfLo 1wLxJfnG925NaEMCoANNZjiNJeLo1yR1SFHlClMhO3on/AG3cfsMZR5E7WY1DmROhQnV QPbvtzAAh3XqOw8Eoq26I+GvoAfrGuMYUoGbNfS7axjnXnm8FVEY81bl1ffDp6yBqRHt tPsen16PkM39bRZzQELJJvw1Zqpi9r6F7T20PW8CC1M9fSANajWT+ChFcnB/LWH8b16y dYeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si2732708edv.277.2021.01.21.13.10.31; Thu, 21 Jan 2021 13:10:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727589AbhAUVJe (ORCPT + 99 others); Thu, 21 Jan 2021 16:09:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbhAUU6P (ORCPT ); Thu, 21 Jan 2021 15:58:15 -0500 X-Greylist: delayed 485 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 21 Jan 2021 12:57:22 PST Received: from antares.kleine-koenig.org (antares.kleine-koenig.org [IPv6:2a01:4f8:c0c:3a97::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD63EC06174A; Thu, 21 Jan 2021 12:57:22 -0800 (PST) Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id 4F281AD8EB0; Thu, 21 Jan 2021 21:48:22 +0100 (CET) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Wim Van Sebroeck , Guenter Roeck , William Breathitt Gray , Greg Kroah-Hartman , "Rafael J. Wysocki" , Pau Oliva Fora , Dmitry Torokhov , Mauro Carvalho Chehab , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Matthew Wilcox , Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , Finn Thain , Michael Schmitz , Jaroslav Kysela , Takashi Iwai Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v1 0/2] isa: Make the remove callback for isa drivers return void Date: Thu, 21 Jan 2021 21:48:10 +0100 Message-Id: <20210121204812.402589-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, as described in the commit log of the 2nd patch returning an error code from a bus' remove callback doesn't make any difference as the driver core ignores it and still considers the device removed. So change the remove callback to return void to not give driver authors an incentive to believe they could return an error. There is only a single isa driver in the tree (assuming I didn't miss any) that has a remove callback that can return a non zero return code. This is "fixed" in the first patch, to make the second patch more obviously correct. Best regards Uwe Uwe Kleine-König (2): watchdog: pcwd: drop always-false if from remove callback isa: Make the remove callback for isa drivers return void drivers/base/isa.c | 2 +- drivers/i2c/busses/i2c-elektor.c | 4 +--- drivers/i2c/busses/i2c-pca-isa.c | 4 +--- drivers/input/touchscreen/htcpen.c | 4 +--- drivers/media/radio/radio-sf16fmr2.c | 4 +--- drivers/net/can/sja1000/tscan1.c | 4 +--- drivers/net/ethernet/3com/3c509.c | 3 +-- drivers/scsi/advansys.c | 3 +-- drivers/scsi/aha1542.c | 3 +-- drivers/scsi/fdomain_isa.c | 3 +-- drivers/scsi/g_NCR5380.c | 3 +-- drivers/watchdog/pcwd.c | 7 +------ include/linux/isa.h | 2 +- sound/isa/ad1848/ad1848.c | 3 +-- sound/isa/adlib.c | 3 +-- sound/isa/cmi8328.c | 3 +-- sound/isa/cmi8330.c | 3 +-- sound/isa/cs423x/cs4231.c | 3 +-- sound/isa/cs423x/cs4236.c | 3 +-- sound/isa/es1688/es1688.c | 3 +-- sound/isa/es18xx.c | 3 +-- sound/isa/galaxy/galaxy.c | 3 +-- sound/isa/gus/gusclassic.c | 3 +-- sound/isa/gus/gusextreme.c | 3 +-- sound/isa/gus/gusmax.c | 3 +-- sound/isa/gus/interwave.c | 3 +-- sound/isa/msnd/msnd_pinnacle.c | 3 +-- sound/isa/opl3sa2.c | 3 +-- sound/isa/opti9xx/miro.c | 3 +-- sound/isa/opti9xx/opti92x-ad1848.c | 3 +-- sound/isa/sb/jazz16.c | 3 +-- sound/isa/sb/sb16.c | 3 +-- sound/isa/sb/sb8.c | 3 +-- sound/isa/sc6000.c | 3 +-- sound/isa/sscape.c | 3 +-- sound/isa/wavefront/wavefront.c | 3 +-- 36 files changed, 36 insertions(+), 79 deletions(-) base-commit: 5a158981aafa7f29709034b17bd007b15cb29983 -- 2.29.2