Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9841123rwr; Thu, 11 May 2023 23:19:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vby6PZ/2twyx+SLFW0AzO20rgo8oKMyumSubQv3EYrgBkM/QwNtswKhVn+2VVKilHUV/l X-Received: by 2002:a05:6a00:1a50:b0:643:59cd:6caa with SMTP id h16-20020a056a001a5000b0064359cd6caamr31405065pfv.7.1683872388011; Thu, 11 May 2023 23:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683872387; cv=none; d=google.com; s=arc-20160816; b=UaUx76Dwp6idqhA/+JSfGh09uKsPhEDaXmgjImLzLidsxlxDXZrZvPnhwfcLyRWtTC MU5OH3S2mnYVh8eogsZCH6/RH2bU3QxKblbsR4ddPfst83LDi8tw68y8uNs+wVguA6CQ TDCuLhIZY2/ZPGhS84lpfxNeoceHW+ZC6tMBcibtUfjmrZSrStqy+Oj7e7pjhWXzvk84 hiFSv4RTNQf/HQeDrUuZr3LqcIG9Ox+Q0nRMt7W2zBO39SBiby41qh5Ha1RmQt3ajFhO xXdnMgPe1SmhjDV5Dv7roPt7ZYn2ybPfdreDsWhkimGsulMRozd/zOLXrKSQha+Ewbzz YrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=bRMbaARIgZ9xjcHi9XuSWfKCxLwnvWeu/839lqH4loo=; b=HnWVLs60sYq6QGWa0dUF3rWKrcESzrSak+Uyrpq5Uz4vCh8Bd321zpabbwTD6DX3Cp yTNcUB/tvRr/pU6szt8G/65MsDUTYQu7pOAf7Q+SXbiEVyJd3ax+zFBxedP3gisD/mOx cMwSHgyr8wWlGsQOXcsQBOU3/V/ntD+UoiEGC2teQXLlgYQkw8w4HVDbB7OLTOqjJXnA IPK/lWSWA1hG/JA9auYYea8BbVQCfVDAbN2ICqQwSqMDfrMjcY8X1jCAcF0eiJQkZakL TNYRN7yefvD/cGIC1ocDOVoa5sfuQnV6K4BrLpxkj/i5YfYWFueIsC/OYZ1HbGEtJDsq vdUQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a627917000000b0063b60063f55si9775254pfc.382.2023.05.11.23.19.33; Thu, 11 May 2023 23:19:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239740AbjELFop (ORCPT + 99 others); Fri, 12 May 2023 01:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbjELFoo (ORCPT ); Fri, 12 May 2023 01:44:44 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43A23172A; Thu, 11 May 2023 22:44:40 -0700 (PDT) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(20700:0:AUTH_RELAY) (envelope-from ); Fri, 12 May 2023 13:44:26 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 12 May 2023 13:44:25 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 12 May 2023 13:44:25 +0800 From: ChiaEn Wu To: , CC: , , , , ChiaEn Wu Subject: [PATCH] power: supply: rt9467: Fix passing zero to 'dev_err_probe' Date: Fri, 12 May 2023 13:44:23 +0800 Message-ID: <33c598f3655db56eed13a5b46a1468379f69349c.1683863629.git.chiaen_wu@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Fix passing zero to 'dev_err_probe()' in 'rt9467_request_interrupt()' Fixes: 6f7f70e3a8dd ("power: supply: rt9467: Add Richtek RT9467 charger driver") Reported-by: kernel test robot Reported-by: Dan Carpenter Link: https://lore.kernel.org/r/202305111228.bHLWU6bq-lkp@intel.com/ Signed-off-by: ChiaEn Wu --- drivers/power/supply/rt9467-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/rt9467-charger.c b/drivers/power/supply/rt9467-charger.c index 73f744a..ea33693 100644 --- a/drivers/power/supply/rt9467-charger.c +++ b/drivers/power/supply/rt9467-charger.c @@ -1023,7 +1023,7 @@ static int rt9467_request_interrupt(struct rt9467_chg_data *data) for (i = 0; i < num_chg_irqs; i++) { virq = regmap_irq_get_virq(data->irq_chip_data, chg_irqs[i].hwirq); if (virq <= 0) - return dev_err_probe(dev, virq, "Failed to get (%s) irq\n", + return dev_err_probe(dev, -EINVAL, "Failed to get (%s) irq\n", chg_irqs[i].name); ret = devm_request_threaded_irq(dev, virq, NULL, chg_irqs[i].handler, -- 2.7.4