Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1117285rdh; Fri, 27 Oct 2023 05:26:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFizDwrri16OF09jiSleho2J76ayUC88gvqllJxWf8SFPfi8zfIYUkDCiYbMBGWgOJGew8G X-Received: by 2002:a9d:6657:0:b0:6cd:a63:6ed4 with SMTP id q23-20020a9d6657000000b006cd0a636ed4mr2120804otm.14.1698409582242; Fri, 27 Oct 2023 05:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698409582; cv=none; d=google.com; s=arc-20160816; b=hOnR2KDsrWBkYj4Rly2WIKM85V9DyBRocAL+P102WIXZiNnhLvoFQh6dayTTuIhe7T I2DnaLxCbWuTDH7Aig/LggmKQMNAPT7d+EoRBNznOvOezZwc4LVPm4DxWwb/p67UUSct D47POc02KVI1fY5qPKbErJF9wktjEdsKTOBtAVfv+PKgRiz5aWjJYNWj67PkdR8dahMj YoLYxypvBnlrzTtiXJLcG6uA8i102ck0lvUxJVI365z31cptxg8uviO8a0pr0/j0OoDf kb+9PwhIW8a4tcV0k6EpiAVkGCNi1EwoUNeVI9Qmtip8QhhLWw62zvZCON83xfUUmqdC +Yfw== 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 :dkim-signature; bh=R0jLu7FrPXbiHZ/OywDUgWzNgQ4L2JO+Ey4Yny2XkFk=; fh=bv1cIc//zgrvF1XRiGbhys0cHoa9qReyr+OfULjED2E=; b=qfYGS4hTt9VYnMbMl4su6KXH5kEBKYfn3FBAu1ECrxjs2PGYwObk6O890uPNrQv1eK /2CzMGZt91khqAWj7o64SQSqPjmaVf2/vjeWYCK3VTc0zDpUEzZD+k+WxSPPGv4sLOt3 Ou40z5a/T10LJO0ruewKviq5HJwljPPLjo74avR1Rzqe8VUd5gKwTQ879RUyvXSZhAHj wr+AhlEjjAtch/S5UU3hhUhgj8d4neW56pVU2kRRLnqlIY51M9CxHFho8z4MD8GkJ1cN 3JWkjl/c6OXEylWg6y7h7V3mEn++6VEOqJBQUEiQULtg8jpie8p2qRehK10TJ1t1P3gw PBww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WnmWaPgq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j189-20020a816ec6000000b005a7aaaf9767si2528687ywc.144.2023.10.27.05.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:26:22 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WnmWaPgq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 91C03805C3E2; Fri, 27 Oct 2023 05:26:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345823AbjJ0M0L (ORCPT + 99 others); Fri, 27 Oct 2023 08:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345796AbjJ0M0J (ORCPT ); Fri, 27 Oct 2023 08:26:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E06E129; Fri, 27 Oct 2023 05:26:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1836DC433D9; Fri, 27 Oct 2023 12:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698409566; bh=40awDpj8t/P0Fjgu0Xs9iB5f6HCN4KxGA43DVPjQQA8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WnmWaPgqN0NlXCTW+Rp3IpUllrg7flEIbffPw96cMvOzMah44V1pqLti007hq2dRU TPVQUzOenFH1PeTMvk4H/BWucapfaGDp7YWVhtUV5hpVObVhn8Kr8F6GQ4rgSMEH6C DmCP2bgAMsemz/iAA5HV2LIM4CMoPiAUaYm8rHXNyIeehSdveDQINev1nJKPhfs5FJ ayZmvReDvmV/7EHtTivLdI94C19XuQvyOSE+8rp6w7LaFBxpKyAtn4Z0ZL5swLzAAq Edlhk4O0v3ALc+OKYCP/kXnT5mjcQ3cvunHbhuhPhp4J4R/DrNGEvJdff4G1ia1YGZ H7/1ULNAyT+Pg== Received: by mail-vs1-f42.google.com with SMTP id ada2fe7eead31-457cdfc293bso905477137.3; Fri, 27 Oct 2023 05:26:06 -0700 (PDT) X-Gm-Message-State: AOJu0YwiZ3Oh6cICnJeSk2mMLNIe0KgZiQDc6MZ5x7fD8SUJ+a0uyvNX 1w9na389ziD+9M/OAuhRlLDEOk9Pw4i5/QAnF/s= X-Received: by 2002:a67:a241:0:b0:457:dae3:4895 with SMTP id t1-20020a67a241000000b00457dae34895mr2656437vsh.34.1698409565144; Fri, 27 Oct 2023 05:26:05 -0700 (PDT) MIME-Version: 1.0 References: <20231023-imx214-v1-0-b33f1bbd1fcf@apitzsch.eu> <20231023-imx214-v1-2-b33f1bbd1fcf@apitzsch.eu> In-Reply-To: <20231023-imx214-v1-2-b33f1bbd1fcf@apitzsch.eu> From: Ricardo Ribalda Delgado Date: Fri, 27 Oct 2023 14:25:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] media: i2c: imx214: Move controls init to separate function To: git@apitzsch.eu Cc: Sakari Ailus , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 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]); Fri, 27 Oct 2023 05:26:19 -0700 (PDT) Hi Andre On Mon, Oct 23, 2023 at 11:49=E2=80=AFPM Andr=C3=A9 Apitzsch wrote: > > Code refinement, no functional changes. > > Signed-off-by: Andr=C3=A9 Apitzsch With Jacopos comments (don't use de_err_probe()) Reviewed-by: Ricardo Ribalda > + ret =3D imx214_ctrls_init(imx214); > + if (ret < 0) > goto free_ctrl; It seems like we can mutex_destroy a non inited mutex. Could you send a follow-up patch to fix that? Thanks!