Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6148841rwb; Mon, 5 Dec 2022 08:32:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5N8NFUSqkj1pVH1aURUe8sg4j+epHlRfg7SH4CgM8UtrB+4gssX5a4A9WiXkKr20VXzF6c X-Received: by 2002:a17:906:3393:b0:7c1:639:6b44 with SMTP id v19-20020a170906339300b007c106396b44mr896871eja.200.1670257952418; Mon, 05 Dec 2022 08:32:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670257952; cv=none; d=google.com; s=arc-20160816; b=O3kwLIlR6VBJag1M27ZXLlJCK9npgn4vKteVXNFv5avEj2/Gep/1xEwReTckd54tEM DKi0Se4zSPFD+EGb30MTBVmH8aGhSZ47Gk0nbZQpNOz5z9MVYq+Q/9oIIluDVET0WUwS yCtyJROhNhJ6UYxLZKjQmpe2SuY3iQj14K2DHd+oWq2g/cTJ28CA5vVcEOoxhQlj0W2E 9OK0tAaXllvw2CJQ2hScyutc1bZJL3CqSIWjurrhF5EStz7fYjvLUe9PUZIydNfe756A Gb4/I7fbSb7vxmmtAjndn52lDy28DwUQ58oHRPh/a2KN/koFoeK7AqZyhi/7xCJr1JJ3 OJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lQxVrWNtKvHqRCXZn3MxlUgvhe9UT0oDst7YhyFeMJU=; b=ZgjJdB7FplqWCF8nOiyPAqgoJsNuVWSrb9vB5eTwkBHyNUQ+mWvlwvCPnuptMq7Ci3 uumtEQQm25zd3NQfP20ipOfZF87Lq4AgdlUJa77BkKxxoZmPBcoKND3+lgT6BwOxBnZg K/vEB0pfWXKcy0HM5u2NQPxH/whFS2+zan+QZeVCAvFJzudBGFem3hORAo1m5KU3BHB1 2db5fj0Xz8osvqRw+Z1S2OnCl0g7I02ATWT//nVdTS7YLcI+Yy/5U7cOzfo8hQjfuVxQ 2mfQhZ5kum+8lT7ulxiq4bqlDL5RIiiXxz8Y4SH0Q/qLbLYz5O8AqRIIxdMMsJDj2Yx+ elag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ANi23Bga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a056402268800b004616acd9cbcsi2866172edd.360.2022.12.05.08.32.12; Mon, 05 Dec 2022 08:32:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ANi23Bga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229970AbiLEQDo (ORCPT + 81 others); Mon, 5 Dec 2022 11:03:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiLEQDm (ORCPT ); Mon, 5 Dec 2022 11:03:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751B013FA4; Mon, 5 Dec 2022 08:03:41 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 13988611CA; Mon, 5 Dec 2022 16:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8930C433D6; Mon, 5 Dec 2022 16:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670256220; bh=mqFOwbVppYAcW5Cn5xUKN/wnrwuAAExaAVEWq0H9axM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ANi23BgakNxd3FkjR7VfG4ohH47l8+R8mpEFenDtWCftg3MQQ6IopoRzje2nL+HiQ W/V3GUTObsYx+ERHGuN5QFLT8PU+TPVzYsCpUcCRWon3OTurNp0CBC//sQKoJd8wn0 kpdJ4IXJQ8tNES9c4Tr4Ag8Zvf352rtyo6Fh3oJ0= Date: Mon, 5 Dec 2022 17:03:37 +0100 From: Greg KH To: Dawei Li Cc: johannes@sipsolutions.net, robert.jarzmik@free.fr, jgross@suse.com, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com, roger.pau@citrix.com, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] ac97: make remove callback of ac97 driver void returned Message-ID: References: <20221205153644.60909-1-set_pte_at@outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 05, 2022 at 11:36:43PM +0800, Dawei Li wrote: > Since commit fc7a6209d571 ("bus: Make remove callback return > void") forces bus_type::remove be void-returned, it doesn't > make much sense for any bus based driver implementing remove > callbalk to return non-void to its caller. > > This change is for ac97 bus based drivers. > > Signed-off-by: Dawei Li > --- > drivers/mfd/wm97xx-core.c | 4 +--- > include/sound/ac97/codec.h | 6 +++--- > sound/ac97/bus.c | 5 ++--- > 3 files changed, 6 insertions(+), 9 deletions(-) > > diff --git a/drivers/mfd/wm97xx-core.c b/drivers/mfd/wm97xx-core.c > index 9a2331eb1bfa..663acbb1854c 100644 > --- a/drivers/mfd/wm97xx-core.c > +++ b/drivers/mfd/wm97xx-core.c > @@ -319,13 +319,11 @@ static int wm97xx_ac97_probe(struct ac97_codec_device *adev) > return ret; > } > > -static int wm97xx_ac97_remove(struct ac97_codec_device *adev) > +static void wm97xx_ac97_remove(struct ac97_codec_device *adev) > { > struct wm97xx_priv *wm97xx = ac97_get_drvdata(adev); > > snd_ac97_compat_release(wm97xx->ac97); > - > - return 0; > } > > static const struct ac97_id wm97xx_ac97_ids[] = { > diff --git a/include/sound/ac97/codec.h b/include/sound/ac97/codec.h > index 9792d25fa369..a26e9e0082f6 100644 > --- a/include/sound/ac97/codec.h > +++ b/include/sound/ac97/codec.h > @@ -62,9 +62,9 @@ struct ac97_codec_device { > */ > struct ac97_codec_driver { > struct device_driver driver; > - int (*probe)(struct ac97_codec_device *); > - int (*remove)(struct ac97_codec_device *); > - void (*shutdown)(struct ac97_codec_device *); > + int (*probe)(struct ac97_codec_device *dev); Why did you change this line? > + void (*remove)(struct ac97_codec_device *dev); > + void (*shutdown)(struct ac97_codec_device *dev); And this line? Don't change things that you don't describe in your changelog and that are not needed for your change. thanks, greg k-h