Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp312860rdb; Tue, 5 Dec 2023 06:16:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRJun5pEdK258lm0BIwb2zfFhBpx2nLWnVureGGL6T1VmY1+R+CIT+qTw78eNh5fOLahWc X-Received: by 2002:a17:903:24c:b0:1d0:6ffd:6e72 with SMTP id j12-20020a170903024c00b001d06ffd6e72mr3720451plh.106.1701785815221; Tue, 05 Dec 2023 06:16:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701785815; cv=none; d=google.com; s=arc-20160816; b=RD6uep9y+JlV3p5cktR3yJ00mmCS6viH55GA+qhCAwh9o0shYEFWSLKGmpIO4xL+Nx JpCG66qqSG54wfVNEAh0lRpMtQ1l7ddK1a9bn140LW2xPhQIzvsvJq843ovzAuCe3LcN YZI7saHQEqADzTt5YONu0AS34MStQUp/1zgbI3jTU3SFyn93JS3K/sfOB2om0jb+EBY5 zmCbh0xWLoffL/tPSaprzhlD2zO1O6Eb6BkFOR0CXwQiTky8CzckvXq+XPgyEpqfc4ts iGvQG9jR7ls5yn9yrQ+4qyQ0A5m5RzZmTKgwTtmpMZm9EGacjx6GyhhIa9JbGh8s3+QL Oczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=+Nt+petlCllo9HZx06Ai5RTtJu7pdFsdwi3W5/U60BA=; fh=gBwp+RdD/HKhWQtPQAu5mtannmAAfGYpdPR/01Mvi1Y=; b=WCMIF7uXqZYr7CG3nM3UyVOHlbuMChkUAXB1zbFxmwI2iLn7p7ZeQ6mVIa2JoI14TT zk6CkFmkbdtaXviYB8irJO+G2sEFGEmnHB45KylCqRXYe80q9SzQXamVtsNVxh4El52O 25oqlxgJGUQqXckRO3mBZO65JxgUUfeD/3fhZXJ+naNtn3gYbygCvGuliImmMAfEt0tQ FZxOdp54+O0L+hcNfU0AOX2kV9eZoiRNwYRdevgDWXnh0GhUKi+abQB6l1Gr7KSE+UwL 8ZMyPDKi7QHpIgUmx6BK2TOS4PrtpWI/REhpGihK4nhQw7NLk2gxmCbcEfqGpmCgMGrV mBMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k24-20020a170902ba9800b001d0bf9348e7si1760480pls.63.2023.12.05.06.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:16:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 59730807F4B9; Tue, 5 Dec 2023 06:16:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345653AbjLEOQb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 09:16:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345621AbjLEOQa (ORCPT ); Tue, 5 Dec 2023 09:16:30 -0500 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF597CA; Tue, 5 Dec 2023 06:16:36 -0800 (PST) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5c08c47c055so62638637b3.1; Tue, 05 Dec 2023 06:16:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701785796; x=1702390596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=toeXBGSxtCl/y9uazlZXk7ynXJbfYUPNHJ5USUpIKxk=; b=es07HLVysw0eA7HwUwdBNx/ffE6o4jsFhJXOyh5e4tnkO4dwFj4q8qoDBRMyACixB9 1f4v1x8lH4ZBqNNPvKyKOfMuMn7GWDZ71rnj2CX5THcVJv5BmEwCcYWB1SDckwETUDMa xUCKp7ZKg8qdPuj1dLzBS5x19fLzClnYcMFAQUJ6lxsGYBl8qjtLm+ke9AZR9+XZqNNA PtvwlK7Dkt8AeQmSgOycACkSzNIu0AviPwSGDpErFUsVyptcQFIkfB9sZM9iDAa/0KiM k6J633WqxNNsf006MQ/WCt2HlTtXxSscQ52IuKk7p+czAXL+4Tj2rMS7cJRaljT75i2K WnHA== X-Gm-Message-State: AOJu0YwAg+esHyv4lKrnQ4sLzH66Kt6WWiZnwdLVh2UMeheC5u68Mlnx D2MHtghQt4pxrIvC3lT3LMgLq0xzaXPxUw== X-Received: by 2002:a81:ac62:0:b0:5d7:1940:53d5 with SMTP id z34-20020a81ac62000000b005d7194053d5mr4136111ywj.77.1701785795839; Tue, 05 Dec 2023 06:16:35 -0800 (PST) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com. [209.85.219.181]) by smtp.gmail.com with ESMTPSA id x127-20020a818785000000b0059bcadded9dsm4158934ywf.116.2023.12.05.06.16.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 06:16:35 -0800 (PST) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-db54611b920so3705367276.3; Tue, 05 Dec 2023 06:16:35 -0800 (PST) X-Received: by 2002:a25:15c9:0:b0:d9a:c218:817c with SMTP id 192-20020a2515c9000000b00d9ac218817cmr3694514ybv.4.1701785795466; Tue, 05 Dec 2023 06:16:35 -0800 (PST) MIME-Version: 1.0 References: <639e796b36815a219ff1172cc758ba7378211d74.1701778038.git.u.kleine-koenig@pengutronix.de> In-Reply-To: <639e796b36815a219ff1172cc758ba7378211d74.1701778038.git.u.kleine-koenig@pengutronix.de> From: Geert Uytterhoeven Date: Tue, 5 Dec 2023 15:16:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/8] regulator: bd9571mwv: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Liam Girdwood , Mark Brown , Marek Vasut , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, kernel@pengutronix.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:16:52 -0800 (PST) On Tue, Dec 5, 2023 at 1:26 PM Uwe Kleine-König wrote: > 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 ignored (apart > from emitting a warning) 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. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds