Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3034399pxb; Tue, 12 Oct 2021 19:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpQcKVNnYV+QjQE92hlkNbYOEXMhB2zP52r6Sya26uBSCw5VDNAs7lFd7WC0yCyTtjtbLP X-Received: by 2002:a05:6402:278a:: with SMTP id b10mr5450402ede.134.1634092641238; Tue, 12 Oct 2021 19:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634092641; cv=none; d=google.com; s=arc-20160816; b=lJlg7PVUO0+ONDHY0qk4/xJYvFSxIqyeB185vUZyRsmmbWmYn5l8w7UiVi96NqCcHQ hQ5AO5w9zKz2KAhVorhGOSufWcwFMFTXBB8B5wLQBZNrGJA0UxAHF3l+PyFrfLgdkBAZ vTXm7kRYKBk6XIGJTMjXbzZd9MUTtDcQ03IXcUQ5KHz/Y2wu1L8lIOiDjO9q6QBmlZs3 0fseDL2NJi4jZPeVnPY8OICzCbz6mQLRV2/8diPHHWrgkm0Qmz6YVN1Ge0doslz2da/3 Fv+c08X+45oWaVeGfss72S+SNbgeh8hSkc7sqiUEVAAkvwK1eSe1gFtXfch8aVMAuVpM YbvA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3bzp+5l6WTo7PbKHNMv1iXseFfgQgASCADLi09sp0dQ=; b=wAXTXyKFzbHV/uvq1VKtIblvLW+PBpffR01IUvVXZOoGu7ciq47JNjCFqRfGHWBwLg XkhiyCX6ch4YlIPuK+TESPUDj0EmeQDB0CXIh1ZHx+ecT2k3a4lOgNlzIKbEjNkM9Heh 3K5uFq8FdaTeT7DCgO9pBPHefq5YNjdBMyY0R6Aklx2CxRia7cA85pvzutefDp+NCNJO zAMfRHG6cnkRAyl2IgwzyZyN2lBRFlKKN9ANc/mDlSkdXLvrQ0Iq3BomQFxS+kZ3DU+8 6zSkzEDEQh/qFypxWuDAcXVcWjdkzcfO5PpTghvwflj88doMnkbud0jCDGSaTXgJrWE9 sFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GIuH+ViP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si16285122eda.433.2021.10.12.19.36.57; Tue, 12 Oct 2021 19:37:21 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GIuH+ViP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236401AbhJMCge (ORCPT + 99 others); Tue, 12 Oct 2021 22:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235120AbhJMCgd (ORCPT ); Tue, 12 Oct 2021 22:36:33 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E723C061570; Tue, 12 Oct 2021 19:34:31 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id qe4-20020a17090b4f8400b0019f663cfcd1so3296662pjb.1; Tue, 12 Oct 2021 19:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=3bzp+5l6WTo7PbKHNMv1iXseFfgQgASCADLi09sp0dQ=; b=GIuH+ViP8uIA0KOO0J2nG+UiPKqlt73g90hiO/rMDvzQ98GdLoPx+wqsc+cIHJ+VWa oYfVrjHcclVyuX9iemPl+eZYkkujpz9bbTFgtfioVbE3FmRDzTWR7zeIqLrf9AEHx23k djcGczXtv4+GyboTFbzCrREN574E0lEEjn0p0AQljE9qOc0br29L9tNNUF2CwPUneiF5 jPZFpK2/LeqYtDvrNH6JgF962ph4PL+8AuoSKpB/bvCMoD7IQIJr05CzuBtYeIQoIIXz 8mg0Dbua33x0rOgPUJmF9I/5Y48gqZzp5DoDQFKp5xw+w9CsHsCgZX5m5Q52SA6etYnk VE6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=3bzp+5l6WTo7PbKHNMv1iXseFfgQgASCADLi09sp0dQ=; b=qZKmxnr6PTiNFbbNn6pjRN9g2i8V8DRdWDoY/AdAqagRk2QV5BuN6lAESoLNoY1zH1 c29ATpYCnSjmz3rX/Bl1ayNsNvKyYfQ2gOOdMYqrIjCUxJAdeagBA3GjOrMH5ZWHEHH9 UhQkUyd3a5FGsxsohRNb7hl7KUD0yafoSNXDr7PB6YDfl5zWXy0w5dkDHjdRRwSXz/8i Js4cbzx1WpjvaEUnDBY3xk9l+xccI+Q7UDxZBdx1MUnREjdd8GbwopJciGAgOqYu8ZW7 u91QPF3i82bTVzR2uxfvcsPf32J+vK29Fisvfitx/bpCjsenvlvbDJJbkBUxatFD0Xjb Bs3w== X-Gm-Message-State: AOAM533wzIbF3rSVEDTwzD1fxlSZiXV2cO+bVOQs5JSh5KplzcvIgMKL CZ2oTGa+ud+bF67Xj5ktdmnSt58j80I= X-Received: by 2002:a17:902:d70b:b0:13d:f465:9ef1 with SMTP id w11-20020a170902d70b00b0013df4659ef1mr33031187ply.44.1634092469233; Tue, 12 Oct 2021 19:34:29 -0700 (PDT) Received: from google.com ([2620:15c:202:201:618d:87ca:8f95:87c0]) by smtp.gmail.com with ESMTPSA id j4sm13290471pfu.94.2021.10.12.19.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 19:34:28 -0700 (PDT) Date: Tue, 12 Oct 2021 19:34:25 -0700 From: Dmitry Torokhov To: Alexander Sverdlin Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] Input: ep93xx_keypad - switch to using managed resources Message-ID: References: <20211012013735.3523140-1-dmitry.torokhov@gmail.com> <20211012013735.3523140-4-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 09:54:32AM +0200, Alexander Sverdlin wrote: > Hello Dmitry, > > just one question below: > > On Mon, 2021-10-11 at 18:37 -0700, Dmitry Torokhov wrote: > > +???????????????return err; > > + > > +???????err = devm_add_action_or_reset(&pdev->dev, > > +????????????????????????????????????? ep93xx_keypad_release_gpio_action, pdev); > > +???????if (err) > > +???????????????return err; > > ? > > ????????keypad->clk = clk_get(&pdev->dev, NULL); > > Isn't the conversion to devm_clk_get() missing here? Indeed it is. I'll post an updated patch in a sec. > > > -???????if (IS_ERR(keypad->clk)) { > > -???????????????err = PTR_ERR(keypad->clk); > > -???????????????goto failed_free_gpio; > > -???????} > > +???????if (IS_ERR(keypad->clk)) > > +???????????????return PTR_ERR(keypad->clk); Thanks. -- Dmitry