Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1592360imn; Sun, 31 Jul 2022 13:23:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhzdNjz4r9XRwLQtyvV0nXjW/6MdNIDiaMU4sUW1qFQZdJn4f1mxO9dpNKF4i75WwnkXpR X-Received: by 2002:a17:906:2ed7:b0:72f:d080:411 with SMTP id s23-20020a1709062ed700b0072fd0800411mr10131564eji.203.1659299034557; Sun, 31 Jul 2022 13:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659299034; cv=none; d=google.com; s=arc-20160816; b=PEcfzMPzUKfuRH4bt//X1RQvItuvymBNCC1tX/pIDNafMdV5cVzAlzLIwQTRnzh7Nh QtXK3z4Ztmk1+gwWZSQeYYFzJK65CzpHpmttVEPKhnu7HymJsEN9FF9e/itUU0SEooR1 gl4mMH5/isjKvJkixJmrHqY7KHGhev+4SMW3tbzDM5kjLHl2zBJA2l/LvcQ7J3oZPn9i nFPmDPXGGtnaMs/fFeSoZ61J83fipug1C3EciQYVod0M2YoPCT8Iz7DUrzd6vVnlvMYt 1bdFjKC4cxXbg8IQq0zLnCfSj28Bjp8qiRNHGpuIZI8/d5jcFjfSDBm91SfDJ15SrwaA qmww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MvQZD1ucopv5AF7e2dLrrgB4N6H/lZ3Q4H+63HI1JQs=; b=GAsoh6EvxHOK3ICjT8iCGLE9hYxtR8WxkcQQhwm+5P3QixCI3MMm0t4BtdU+ScNMES /VeroeYnOVFOxh+Fl+3Jr23P1aR2Gxx6UR7rW1PyGggarIbiGSW3JaPCbjvnm6rouUeg hGQgQn1a58eWAp7OHdhTGRsVjoCLEEU8VELptm1axNNeAZnHzz6o7CyokYhKqMtQiinn klLwOnH2Y1CSFHIFeHUBZHje6crFkLdnCmPFy0V3cuZctgG1Oit5sHwDTI19/VeDFGb8 0uHpNsd7UraQHNkRv3K8mHq6ujtXSi96vtLOdsC75LCqJd6akG+c+fWMmFjVQ9cS2oQ4 +ltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QrCT1YLW; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a1709065d0500b0073087f52a81si744768ejt.784.2022.07.31.13.23.28; Sun, 31 Jul 2022 13:23:54 -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=@intel.com header.s=Intel header.b=QrCT1YLW; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238140AbiGaUNE (ORCPT + 99 others); Sun, 31 Jul 2022 16:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237944AbiGaUNA (ORCPT ); Sun, 31 Jul 2022 16:13:00 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19546E0F3 for ; Sun, 31 Jul 2022 13:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659298380; x=1690834380; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iS/WvWpNtmeUiDZfj9nj3YoDnEgHJ3SA5LrEl1d5afM=; b=QrCT1YLWD2iPkTAdrtwgn0ybiVYrsf1Rato6UX00M5mj5Knu6bJmdkOE jOM85x3Fgf9m0PIxyXO/5sQI80QPMI8dogCWtK0LzIjaA3h1xwAvlLoQR ZnQ9/jk/nzlUaiBtNOgP3XZUsW0pgGK8MpLeZcyjm0locdiQKXnmpFndu WkWn+h57t9bdJVoDxyEiE7yXzJxGMsCmd8jl5tWRq/KHTQt7NHKxD14YU QQx45XrbgyiCnMVN8iV3KZ5lMVwTFEs3Nn3QvCmEFOQ8YpBGeFBplnImU qlGiK/af7+wJz3DdKw3sOQwaPw86JwR4291H0gBpcSkradTodzSzbuCKs w==; X-IronPort-AV: E=McAfee;i="6400,9594,10425"; a="287779678" X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="287779678" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2022 13:12:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="929327769" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 31 Jul 2022 13:12:57 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 3C05FF1; Sun, 31 Jul 2022 23:13:07 +0300 (EEST) From: Andy Shevchenko To: Lee Jones , Andy Shevchenko , Hans de Goede , linux-kernel@vger.kernel.org Cc: Lee Jones , Andy Shevchenko , Christophe JAILLET Subject: [PATCH v2 01/10] mfd: intel_soc_pmic: Fix an error handling path in intel_soc_pmic_i2c_probe() Date: Sun, 31 Jul 2022 23:12:49 +0300 Message-Id: <20220731201258.11262-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 From: Christophe JAILLET The commit in Fixes: has added a pwm_add_table() call in the probe() and a pwm_remove_table() call in the remove(), but forget to update the error handling path of the probe. Add the missing pwm_remove_table() call. Fixes: a3aa9a93df9f ("mfd: intel_soc_pmic_core: ADD PWM lookup table for CRC PMIC based PWM") Signed-off-by: Christophe JAILLET Signed-off-by: Andy Shevchenko --- v2: new patch drivers/mfd/intel_soc_pmic_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index 5e8c94e008ed..85d070bce0e2 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c @@ -77,6 +77,7 @@ static int intel_soc_pmic_i2c_probe(struct i2c_client *i2c, return 0; err_del_irq_chip: + pwm_remove_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup)); regmap_del_irq_chip(pmic->irq, pmic->irq_chip_data); return ret; } -- 2.35.1