From patchwork Sun Oct 13 16:21:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11187439 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CE5314E5 for ; Sun, 13 Oct 2019 16:23:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 070C22067B for ; Sun, 13 Oct 2019 16:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570983822; bh=/Gr9s0H0SajSm538jOlYy2EWQD9xiEdZP3Nkix/Np/M=; h=From:To:Cc:Subject:Date:List-ID:From; b=n7ML1iN9ZvQlT+yqV2o4OSq9Rlb+pMlGd8GDYwMBv7jjAQlpQp9he8ahfhgdfjEmq 192QJ9QURVQV5OPGkBd7xmSLnpKkwRig5vTS3u+7IcoxD1jiE/Fqjwm+kCAIcgugFa W5BiprOB7QkA4AbYiq+w2+V0TW9QWOVUIuni9Ps0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727632AbfJMQXi (ORCPT ); Sun, 13 Oct 2019 12:23:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:60248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbfJMQXh (ORCPT ); Sun, 13 Oct 2019 12:23:37 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98A8A20659; Sun, 13 Oct 2019 16:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570983817; bh=/Gr9s0H0SajSm538jOlYy2EWQD9xiEdZP3Nkix/Np/M=; h=From:To:Cc:Subject:Date:From; b=vmWC5RC+20gVLMrGu0JhR20jytli0dqW8Bw9AkUKAdSL2e0z3PQXReEXhCqiipHyc wI0hoSe95u3eisKKnnDSZbJoGK5IMEeYCeSluehSCcn779QsIwWwCuemBvOFS5BsQB aZIdmlFr3PGZl9pgfU0msFT/i+w3gHYfPE6M+H2Y= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Tony Lindgren Subject: [PATCH] iio: adc: cpcap-adc: Fix missing IRQF_ONESHOT as only threaded handler. Date: Sun, 13 Oct 2019 17:21:33 +0100 Message-Id: <20191013162133.1999362-1-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Coccinelle noticed: CHECK drivers/iio/adc/cpcap-adc.c drivers/iio/adc/cpcap-adc.c:1009:9-34: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT As far as I can see this is a simple case of it should be specified but isn't. Signed-off-by: Jonathan Cameron Cc: Tony Lindgren Acked-by: Tony Lindgren --- drivers/iio/adc/cpcap-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/cpcap-adc.c b/drivers/iio/adc/cpcap-adc.c index 2d616cafe75f..5086a337f4c9 100644 --- a/drivers/iio/adc/cpcap-adc.c +++ b/drivers/iio/adc/cpcap-adc.c @@ -1008,7 +1008,7 @@ static int cpcap_adc_probe(struct platform_device *pdev) error = devm_request_threaded_irq(&pdev->dev, ddata->irq, NULL, cpcap_adc_irq_thread, - IRQF_TRIGGER_NONE, + IRQF_TRIGGER_NONE | IRQF_ONESHOT, "cpcap-adc", indio_dev); if (error) { dev_err(&pdev->dev, "could not get irq: %i\n",