Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp644658pxj; Thu, 13 May 2021 13:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJN9fNa/7O/zwWc5fdxgLlji/kXV1vr4/KMWNwJKepHUgv7d/eg8+U7H13R14tge8Di7QV X-Received: by 2002:a17:906:a20b:: with SMTP id r11mr45764189ejy.323.1620937489273; Thu, 13 May 2021 13:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620937489; cv=none; d=google.com; s=arc-20160816; b=quPZuvqy1unJFYlpX2LO01+fFpiL/YwrPbyN7+OY+QXP9yNr9wzMHwLDHKqKtkSK4l lMf9CQTmVhBtR4FxMK9XC37fB3wWIMtswVLnuAQtAg670ziQQnr6sFQt3o9wmhUZSO9P cYsbBT3QoSRzSeZlIVoG/p5yDg1GIgTnsv3Zy0Oru5Rb8WK6eN6Pv/fMjBtxEYmEL2J+ a2++gjes9+R4kf2YeJ5FWaeoB/jIJTekut4neSLOh1vWn+byq6QEUTMGu3t4Ekq6QNYq A1ythcsDlXLDlzmctJdkmzj8fxvhdMTdZYDnENSkgB7ECre/6SwEtbj8Glqzh1nr9mBf L1OA== 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=5c+WFgD+mv5+wfAhHtnb2MSb82qjsL/6ebGNDlpKDZY=; b=rsUQ/pZFEkxsgpM2IYFT566iJjVUaox2BbaNizZww85GbkxCBOgi1z6q7oUBXr+aGg VBm9qGbwqcJYP7j1ez/PG4U5RvvVRVKJ3nSLBLlVg++uGMGjVM1hxGizI/fvPO196QvP enlglOzizsoQk2LyTwTmA7ViTR+WBId3h5TuUmdoJfV5pTMkkbiRVj6H9Xth+HWx0xlp pO+7QDx8YoMtQb2uRd93TF7VwxM4CxLeBjlng2whzQkzuGbLEPsXwygxwWkd7O1V3Ga5 MMKzKlDlJrolRnqlWym6IKLS3P2PwN3kchudm1LOrveQZu+daymGCHXVWhRLK3VyqGuP d6bg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si3790770edv.523.2021.05.13.13.24.25; Thu, 13 May 2021 13:24:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233863AbhEMMdt (ORCPT + 99 others); Thu, 13 May 2021 08:33:49 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2477 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233768AbhEMMdq (ORCPT ); Thu, 13 May 2021 08:33:46 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FgrZm08cvzBvDG; Thu, 13 May 2021 20:29:52 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 20:32:23 +0800 From: Tian Tao To: CC: , Tian Tao Subject: [PATCH] mfd: max8907: move to use request_irq by IRQF_NO_AUTOEN flag Date: Thu, 13 May 2021 20:32:25 +0800 Message-ID: <1620909145-21744-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This change is just to simplify the code, no actual functional changes. Signed-off-by: Tian Tao --- drivers/mfd/max8907.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index d44baaf..40e70ab 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -228,11 +228,9 @@ static int max8907_i2c_probe(struct i2c_client *i2c, goto err_regmap_rtc; } - irq_set_status_flags(max8907->i2c_gen->irq, IRQ_NOAUTOEN); - ret = regmap_add_irq_chip(max8907->regmap_gen, max8907->i2c_gen->irq, - IRQF_ONESHOT | IRQF_SHARED, -1, - &max8907_chg_irq_chip, + IRQF_ONESHOT | IRQF_SHARED | IRQF_NO_AUTOEN, + -1, &max8907_chg_irq_chip, &max8907->irqc_chg); if (ret != 0) { dev_err(&i2c->dev, "failed to add chg irq chip: %d\n", ret); -- 2.7.4