Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2099123pxm; Fri, 4 Mar 2022 09:20:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJywG8Y7/FAFE8UUDR6O9rLD2TO9gq9ZRywldHoBFt6vWNfMMJjdi/KcBec0UYNvZ2dywOqd X-Received: by 2002:a05:6402:168a:b0:3fb:600e:4cc3 with SMTP id a10-20020a056402168a00b003fb600e4cc3mr40374211edv.32.1646414450585; Fri, 04 Mar 2022 09:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646414450; cv=none; d=google.com; s=arc-20160816; b=k497XmByXHiVHEH+ux6TD0HHdlryzuXScDjLALPOyoYp7SsoFsWayYqIBN2bqAOp4l R8LWUIUpqmAfCDvgtOUG/2Hf5BiN7yobQNZDdKdbXEODDQ0e1hWnf3R+7Axi4b2kd0bo shIUPZ9xS54Ehp5xtsPnapkKTQleuaJ654MTaoAxVnG/J4WaUSbvyFumiW7kBn8J5oQl JOWTMdEGAi8gKfwMRZkYsjzjZWyLLSp0wKbKux0yDsA26+Y8sXPMgcMUmbJAH7kpu2C0 fgn0NnXjEQ2UxSjff3+PGwaZQqsAuxD0LUYGtApHaYqoOAdTVkkkP1rrdEF2ojY5VIme MDDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lwhVfdpuKKMBPiRws4X0H+QIchtAscw5Q6iMAm4osNM=; b=Xw4lrBr7Fx+rTkFiVw4fFgjPlJUS+4UEYd7UZDb/i5MlDuhiyjeLzTcFCk8Res4EdC z1UDEBgd9pO5MPaxxqiR7FFA4tEJx1j/GKz4sPfGUHlhRSQO903/MhQ3z0HPC3aMbNSs RFzeCCNgV7rLJpHvIVQnwWm5SYQH4AlUW3cfASBrepvFUmsbsjiztW9Ch7Jsek7iFCZN gNFn0kWoToO4He1aFFjkXa6yQ2IkODeXpoxM+L9ozDkDdwJrcZREe5+annSyaOTdysu1 03/TFxxiydvdd4hRNnTzgCeQ4v8llLaa60xaHWkldfVOUWrIQHlaSi4FUodx8pBTkHOd xsTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=dCVRqSvX; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a056402190f00b00415b6d1981esi4765741edz.93.2022.03.04.09.20.26; Fri, 04 Mar 2022 09:20:50 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=dCVRqSvX; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237642AbiCDKBX (ORCPT + 99 others); Fri, 4 Mar 2022 05:01:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbiCDKBP (ORCPT ); Fri, 4 Mar 2022 05:01:15 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBDBA19CCD0; Fri, 4 Mar 2022 02:00:26 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2245iwps027365; Fri, 4 Mar 2022 04:00:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=lwhVfdpuKKMBPiRws4X0H+QIchtAscw5Q6iMAm4osNM=; b=dCVRqSvX2d4AIxXLbYj4l//Ei2h6QReFxgPwDpCm8tvq5w2TsHMeragQ7bTLqBkg5OOp Ggdv7QFAGDakT0T0m5MFpN2Zc/ujnC6LYq6RkgvPX0DzVhuaDn/T47t7ZwytLqifGtSU 6dMB0oTBrUves0J3GiYFp471iDTMDBRx9yjriNwvnZL8TXLmdVfbi2OcomXr6HW1FwR9 r6+c7NyQ35Gk92SM6S0mgjVU509tZSkGnVtbpmQELuC8+rUC2ZbIj60d1tKnVACKHq85 HnKxSMCxLUOIKYoXuifzSXV4VLuz63asSKZJGvrvvrfsF+3CPZ4K43FzBD4XpMZDO3wO jw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ek4j3gs7t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 04 Mar 2022 04:00:12 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 4 Mar 2022 10:00:11 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Fri, 4 Mar 2022 10:00:11 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3A8247C; Fri, 4 Mar 2022 10:00:11 +0000 (UTC) Date: Fri, 4 Mar 2022 10:00:11 +0000 From: Charles Keepax To: Jiasheng Jiang CC: , , , Subject: Re: [PATCH v2] power: supply: Handle error for wm8350_register_irq Message-ID: <20220304100011.GU38351@ediswmail.ad.cirrus.com> References: <20220304015751.367280-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220304015751.367280-1-jiasheng@iscas.ac.cn> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: f2usVe643jZg99CYmGdpU4NV6__644Rq X-Proofpoint-ORIG-GUID: f2usVe643jZg99CYmGdpU4NV6__644Rq X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, Mar 04, 2022 at 09:57:51AM +0800, Jiasheng Jiang wrote: > As the potential failure of the wm8350_register_irq(), > it should be better to check it and return error if fails. > Also, use 'free_' in order to avoid same code. > > Fixes: 14431aa0c5a4 ("power_supply: Add support for WM8350 PMU") > Signed-off-by: Jiasheng Jiang > --- Acked-by: Charles Keepax Thanks, Charles