From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753335Ab2IFD4i (ORCPT ); Wed, 5 Sep 2012 23:56:38 -0400 Received: from mga01.intel.com ([192.55.52.88]:20405 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752030Ab2IFD4h (ORCPT ); Wed, 5 Sep 2012 23:56:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,377,1344236400"; d="scan'208";a="218696533" Date: Thu, 6 Sep 2012 11:56:35 +0800 From: Fengguang Wu To: Greg Kroah-Hartman Cc: Chanwoo Choi , MyungJoo Ham , linux-kernel@vger.kernel.org Subject: [PATCH] extcon: use IRQF_ONESHOT Message-ID: <20120906035635.GA17700@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci Make sure threaded IRQs without a primary handler are always requested with IRQF_ONESHOT. Signed-off-by: Fengguang Wu --- Please take the patch only if it's a positive warning. Thanks! cocci-output-4211-882baf-extcon-max77693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c @@ -700,7 +700,7 @@ static int __devinit max77693_muic_probe ret = request_threaded_irq(virq, NULL, max77693_muic_irq_handler, - 0, muic_irq->name, info); + IRQF_ONESHOT, muic_irq->name, info); if (ret) { dev_err(&pdev->dev, "failed: irq request (IRQ: %d,"