Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp551508yba; Wed, 24 Apr 2019 05:58:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcZO6Zqrk74k8ieofygFBMI9XZ8mymDPqhepEn0qO2KDRKowX4Pg7JBRajOQL2yEo0Mcrt X-Received: by 2002:a17:902:2907:: with SMTP id g7mr32478923plb.238.1556110687210; Wed, 24 Apr 2019 05:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556110687; cv=none; d=google.com; s=arc-20160816; b=vGbfC0t2oqr9qCj5SpC32s44gfO7/yfzgbgcbimxOBYb/PRjFJVpoPT2xWRvCSpmAM huaEU2R9wofUdVKjnvKYcXdV9tGZNaBLJEN7hWhDs10hIgoJNv4X9jfyfZdlRPGrOBx+ u+GIfD7wMqZfw8vR/jWN2q7vPxTtTsveWmNEHwLMPwCvJglMeTJC7rGeGKHKFGfZLCQ4 ze4qwSmKWNgj9z4vtTdre5u4RxsSAGzcmtJlmWpK5aF6xsJMul30G+xAYemjaa8htYCb 27LIupzxTEZT1Tr8KLWGQo+VhTUD7oTHK2wyvY2Q/talXRJmK7WW2GA0tWtJwRDDjgdo 0Uaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=dOnUJ8y4kZt0z4pcCjl7ndBW0lumY8hiF8KW8Mdlx6Y=; b=zreYgAKud5zK+hMSlva137lIIHW+2UTifwZAiMORmPBLaO7MigBhs5cNF0KFX27zqZ fTasfakP750tTJnj51LUANlO+AJCTZz9np5ZH6dluthG8lrSIjg62V0yiqAwYFIJ0Kkc CgMjytBia4d7ljePf1HzzJJgEFFCqVxE/KrQeXPbU83LSJFD2yElJ4QHQu6dWLs8SU0X /zGKD2gcp8VibcmhULWbPBFdHPBBMsnGN9E5FpA5rshnEIz1nO6ZRPrkisYLsW+Sye0W Ze4zpvan75IJ8SavrR1tEdOiMnLFl1QbKgCwm1qzp7GpgxDVDdVVQjJ5WbZznunRcuCL kbPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=kPXPWp25; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gb18si18155475plb.283.2019.04.24.05.57.51; Wed, 24 Apr 2019 05:58:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=kPXPWp25; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730011AbfDXMzn (ORCPT + 99 others); Wed, 24 Apr 2019 08:55:43 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:43448 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbfDXMzm (ORCPT ); Wed, 24 Apr 2019 08:55:42 -0400 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-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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) { >