From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 821B2C10F11 for ; Wed, 24 Apr 2019 12:55:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E601218B0 for ; Wed, 24 Apr 2019 12:55:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fSSTeEmu"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="kPXPWp25" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E601218B0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9T4ATfsXxHkGabO6/+5eOYU1RuiReeeUipUiSjvttLk=; b=fSSTeEmutj78/xW7wtwlo1Vwbe nugYEF0sw/T6vpjQy+wdy+Rv19rFve7+J54ypjlQyK7iengKFr/rAdcUfFklOKbumsbN79Q4jtHta JIGV1uopgBTXtRFJDZI+ow9zaaK+z3qse3iN/J6ckG/3mDiNkuijLysnRJYEoKYnoSWNa2ibbMlNZ alTiqjzqS8Pzl2qh2fF2sZXw/8bgQ9JmWuozq4d07LRDUVvTCjLgIr7PkGm2nhZDJyxinFc2OgUs9 /BA86LN9j0nzox1M5dMmX501nDJuhGNltskbPEoPPzw7Kc6uGlMB2cb0GqU5OpS8mAcZvB8cwsaPF PGr0RLXQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJHQo-0001cB-Kg; Wed, 24 Apr 2019 12:55:22 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJHQm-0001bq-2Q for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 12:55:21 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3OCpv9C009383; Wed, 24 Apr 2019 14:55:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=dOnUJ8y4kZt0z4pcCjl7ndBW0lumY8hiF8KW8Mdlx6Y=; b=kPXPWp258yiEPV9ouU2l8i+0UDG8ZrqyJGsu2E8ht5JDyulonWwMLpY05P7Ew5sYihoA oF0XIpQxRoxlnmeLTAyiDpGcJUGlmZf+Uhgx8T3vptxWD1h129DhVM1LNf5pxiuml35+ 2Ne84nPn78BA4yw1kBbn9Ri/ePL3uokgc77Zci8NavveNiXgjzG5fiT790gFrjD03LXk Z/MnIz7/mHiY8Xc5rSYMdLzjhC2y5CWlAuInOAiodlxCSTgC6dD8/9d3qSmBqBkx46tJ 9R5TY1b9em76/tvkf49nPS1U0j/WeDockSG4AOuLlACD9dmHmrqiM5df6b+nloKnDlPj 5w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ryrvxdk04-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 14:55:12 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0A9AA3D; Wed, 24 Apr 2019 12:55:10 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CB6A611B5; Wed, 24 Apr 2019 12:55:10 +0000 (GMT) Received: from [10.48.0.167] (10.75.127.51) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 24 Apr 2019 14:55:10 +0200 Subject: Re: [PATCH 1/2] iio: adc: stm32-dfsdm: manage the get_irq error case To: Fabien Dessenne , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , , , , References: <1556110286-1526-1-git-send-email-fabien.dessenne@st.com> <1556110286-1526-2-git-send-email-fabien.dessenne@st.com> From: Fabrice Gasnier Message-ID: Date: Wed, 24 Apr 2019 14:55:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1556110286-1526-2-git-send-email-fabien.dessenne@st.com> Content-Language: en-US X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-24_08:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190424_055520_410233_F6E6EC9D X-CRM114-Status: GOOD ( 16.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/24/19 2:51 PM, Fabien Dessenne wrote: > During probe, check the "get_irq" error value. > > Signed-off-by: Fabien Dessenne > --- Hi Fabien, Acked-by: Fabrice Gasnier Thanks, Fabrice > drivers/iio/adc/stm32-dfsdm-adc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c > index 19adc2b..588907c 100644 > --- a/drivers/iio/adc/stm32-dfsdm-adc.c > +++ b/drivers/iio/adc/stm32-dfsdm-adc.c > @@ -1456,6 +1456,12 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev) > * So IRQ associated to filter instance 0 is dedicated to the Filter 0. > */ > irq = platform_get_irq(pdev, 0); > + if (irq < 0) { > + if (irq != -EPROBE_DEFER) > + dev_err(dev, "Failed to get IRQ: %d\n", irq); > + return irq; > + } > + > ret = devm_request_irq(dev, irq, stm32_dfsdm_irq, > 0, pdev->name, adc); > if (ret < 0) { > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel