Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4954rwl; Tue, 28 Mar 2023 19:40:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQM9t8n9wKwQ8ww3oyAf/XVWpyk7On2HYYPJPlt088wJU2sYIdYe6nGZMjeEVvoEayO5YY X-Received: by 2002:a17:902:f243:b0:19c:dedd:2ace with SMTP id j3-20020a170902f24300b0019cdedd2acemr14321546plc.18.1680057634836; Tue, 28 Mar 2023 19:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057634; cv=none; d=google.com; s=arc-20160816; b=q85UqsepgdCgnQ2C81JQZp4i4STOxEko8ezcGVitzT6TCmSPLYtfe6vsDkeR1Cx1IM 1Cj43oMVBbrvmC2mLNGyTpEDtJ9QGFRPPKk9JQriLNKVNrFu0hWB5NDbECKMtY9Z52A/ e5zXncrOvCXkR3iYiJhorm8VfgerP7ip1gXHhBG9CAW2wlrl/DA8PyKnXzN4PbpHVSDg 0gNBR1VtrpHkw03SWFhHt/vFmewA7EUSLx3mQdqv9lMyl497u+XT09aL+2qBOnp19Xyw Vg+xP5vGjLvccYzpugwEWLKY+AsW1o7QMvju+5dRUXnk4nqrebGsBp+mMxJq/6t1iZMk 5HMg== 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=6wQE/drT7e34/c/NgJ5QiJIMrN+6PpgP9tLD3o0ET40=; b=AW8vYbcbWqVwRlZRPMvtUyTnJzluiC+PjkWVlHRa7lz1y/Ues99rnmhXBhBezWXY7D h8Q6PT6hStI6+6KjGvUfNHgl4h/KFiYywG09ZFMk5uA8/1uY+26AP+rgmeNPqLgB+U5I ZrBUXJrWu9nTRpbtWCJ9roTJ0qoSg4q24YBK1DSqqsO8rk5U5XybwZJ78ztKlPmINluC CP9oDucRIJEn5/LFlrrOJvNHR2AzQ4P8B00qzyG4yerTS4AAQMTCfVmRkqCISdacrOF0 8Qs8SC95hs96l6Z+2YuafMKXSMSOCZ/dd8qI0pAVvgOLUdipTPvbdJ0kL/fkqrJztDjR IRvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nFnK+q+K; 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 o10-20020a170902d4ca00b001a1dbafadffsi22242984plg.536.2023.03.28.19.40.23; Tue, 28 Mar 2023 19:40:34 -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=nFnK+q+K; 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 S229906AbjC2Cjy (ORCPT + 99 others); Tue, 28 Mar 2023 22:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjC2Cjx (ORCPT ); Tue, 28 Mar 2023 22:39:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6215C3A9A; Tue, 28 Mar 2023 19:39:34 -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 B3746B81E4A; Wed, 29 Mar 2023 02:39:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7804FC4339B; Wed, 29 Mar 2023 02:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057571; bh=6wQE/drT7e34/c/NgJ5QiJIMrN+6PpgP9tLD3o0ET40=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=nFnK+q+Khdv1ZYiE8apptSAhf8GvCJFSNU9I8S2yelfUbGceiLTZ5D06M7pCwuGhp Odt3C9dadTUrMk28Qjfgdwdh9Rpu+llOlY/3c+8Tn0Sizsj63wvp2fOTC29vc6Xpnt plyk/A1NPGA7uM05/21fPZKSU7ZOtcnyxruTV/5+VdyQx+FHYHUquvXrykKdxR0Nce ehXGUNykDI3vWOZpFJm2T2EEHNv1/39uW65GCYgCa2oNSYc/OgvgMetlYUithoh8oc n0nWAtf+hmViV67exKws/VJrzW7b0YF5uzqKWnQsx8JLpUKPt6W6YXz5LGPv3IntI+ TbYQHjsVPl3uA== Message-ID: <2568dd009b37c4e9a183004dcade416c.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-20-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-20-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 19/30] clk: mediatek: Convert to platform remove callback returning void From: Stephen Boyd Cc: AngeloGioacchino Del Regno , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: Matthias Brugger , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:39:29 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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:01) > 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 > --- Skipped this one due to all the conflicts.