Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5460rwl; Tue, 28 Mar 2023 19:41:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aWt6hgmnVlNZyLEmwWuJCM+lZXo9sB8ylAe3dM0w5ELShC+EIaf/CCE+O0cH/L267r6AgQ X-Received: by 2002:a62:65c4:0:b0:627:f2c8:6f91 with SMTP id z187-20020a6265c4000000b00627f2c86f91mr12241278pfb.21.1680057676475; Tue, 28 Mar 2023 19:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057676; cv=none; d=google.com; s=arc-20160816; b=xMcj9cpXp0HFH9BBH9B/ViBUGJjC8L/zT7K1kRFcxyn1BL4HON8flALsnyLuHlpQCe NbC+9SmWcB7GmgW8DiKiXjZUmCitKqHIiw9cFTGvWl+zmiimbiyOa8+XMk6H4FFPbJOC SAiYvHadIukq7TpTrJNwJzpWiZ8cfakzXNQ+3D+Mvg5Du0GQ0hOfuworKPTxAUhWTVJf 3z6zdC1tq76D+1p4e7a8tAiBbHVJO2NYXLkjVs7FU15qq8Z2KMOsVCLmakSrnJ53xlTd frodrbsaYDIVbiB/GCvODnstKOhgbN9uBAdDFSTitrSZcSuzkDDD9U8c0B/+mBeNLZ8r XCzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=PFuEwU6pEOeBb2Vmcxw+W09YQDloaKZhzbAOEcm33cM=; b=dma3hXORqBfF74C9Z/AUQZDVy/PIun7CgqUCE+R6XkJQi3J921M/zGLpOuWBp8BqqO n4kVZR8pmPA2BLy/J82qzn8+jT/nkhC3GR8raYTPB88T7n1X119XvUIoebMBU1L47ytL 4q59C3bADNiHCpgpOJc6uGbMzdvY0NyymibREmOg55d/jDdqLuqdRwWRDrZ+Xc3Qw7cB maKqM1mrNKeSGusGXkvEBhZ68+zmff1krUyuDPMkW7Hb5UjESKwLzj1UN5OcEUM6+g82 OxK5BQORNhYNL0jcA6k7GiAmjgh18q3ZCh09fDZCsVnjdf6/6YosgHHH9LD2FoZ+UjaX GwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GydfQZYo; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j190-20020a6380c7000000b0050bcbcaf7d6si30904827pgd.49.2023.03.28.19.41.05; Tue, 28 Mar 2023 19:41:16 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=GydfQZYo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbjC2Ckb (ORCPT + 99 others); Tue, 28 Mar 2023 22:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjC2Ck0 (ORCPT ); Tue, 28 Mar 2023 22:40:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D359330EA; Tue, 28 Mar 2023 19:40:10 -0700 (PDT) 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 65F94B81F90; Wed, 29 Mar 2023 02:40:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F5CDC433D2; Wed, 29 Mar 2023 02:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057608; bh=PFuEwU6pEOeBb2Vmcxw+W09YQDloaKZhzbAOEcm33cM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=GydfQZYooLh35K89OuoXpR+sMten21glN8o5NsOpPNYURQg2NON0DY9iUnhmLT5C4 9FytJdrGuKOlAfqGS3dmpg7+fd4qds0QyNbUeJrRB0kBQPHT9RfEAvjRG92K74zNbY iR0rbG0ZHm+Bc5LMLnA1PSXSdMXH/0v7mIkhc/6QhmG3TiVKJmc0azCicFnnYjArVu ycPT84Je7HD1XQJV6iAvros8bM/OmE1R4LS6Y7SNVHobWIHF/drbqQBZ9GA4/fvABz ZNjQavLrCeHbd7W/Hju28FeSg2jlzUeubsTeoI9ZIrL7i8Eaj9yuWMrtWcORyBTLe2 2weUGSM5fHWzw== Message-ID: <03b3693098b4efac3cb7070791528ff8.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-26-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-26-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 25/30] clk: stm32: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Alexandre Torgue , Maxime Coquelin , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:40:06 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Quoting Uwe Kleine-K=C3=B6nig (2023-03-12 09:15:07) > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. >=20 > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig > --- Applied to clk-next