Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5614237ybi; Wed, 31 Jul 2019 00:22:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEJTP/N9T2oDpz6+eDRUwotpswOPOXTnOLl1VeNeY81fYZV8BmOZvgkE3DAY4hYIdbsTar X-Received: by 2002:a17:902:1a6:: with SMTP id b35mr22934654plb.190.1564557750735; Wed, 31 Jul 2019 00:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564557750; cv=none; d=google.com; s=arc-20160816; b=x22LqO/1SfoaYbPp439wMxzdxJadKlZP6D4HRYyZo5YMIxrk6sPg7Dz+CI7uncMek1 Fj3ZLu0rP0Zv/C63aaZyXA8fjGEIiZAiQMAmurAIDFFv2w/PuuQT0aUfI6XepiuNmgVn JdYfcseqL67u+on/5264JcHD2EvY7tpc++/NZpGcPz/xusZUq9mr2U5BD+MhBMEl8NPC kQ8gixl3vfQ7PlOoQSmXB8VSD1FwV8g+Ig7JIiUq2zOtYvo90uY22uch8zLJT/7RS2WH ouHpj1ZDG7HBMdQyqykjjbYlvoV/TlNL6womPtr66IkAWgMMN/PjFacDNv/E254f7izr vVaQ== 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:cc:to:subject; bh=QNkwauFzlLkuIR6EILQPooooLXiq5jDnu9vXiSdSZ7A=; b=YjZbJnebQhwNhHro9A92VhmfU54UY3dCaAMMMzey/fWK4kmttkWCyzfMXKis6+A35N o4S35hvWjD7Sro7OhnIEqGB8JKiRGOFWtGxOXxMuxER8ZLMw+dCPylpmbo2ExoxWDhq9 duKxLOVlG+87qN4mwgR3wh0Aitl4IV00GRXdhLGTyESfrdgD2MXNdBfSgVzLF9tGZXXF qOQilTRHhTym39/5wStEDRc6bmUr/2+/nXjruVJ/2NCMkqLAFZxePyOlYwLHD97Y56s8 XwP/dLstqMB7EWFBaz2TiQ+1ix8qGH+uEMI92F2jggTtnA5cvmsRmEpwjt9GH9PdgMHs goZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 n2si12888620pga.426.2019.07.31.00.22.15; Wed, 31 Jul 2019 00:22:30 -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; 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 S2387464AbfGaGmX (ORCPT + 99 others); Wed, 31 Jul 2019 02:42:23 -0400 Received: from anchovy2.45ru.net.au ([203.30.46.146]:37351 "EHLO anchovy2.45ru.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbfGaGmX (ORCPT ); Wed, 31 Jul 2019 02:42:23 -0400 Received: (qmail 11222 invoked by uid 5089); 31 Jul 2019 06:42:20 -0000 Received: by simscan 1.2.0 ppid: 11129, pid: 11130, t: 0.0583s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.88.3/m:40/d:1950 Received: from unknown (HELO ?192.168.0.128?) (preid@electromag.com.au@203.59.235.95) by anchovy3.45ru.net.au with ESMTPA; 31 Jul 2019 06:42:20 -0000 Subject: Re: [PATCH v6 19/57] iio: Remove dev_err() usage after platform_get_irq() To: Stephen Boyd , linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Greg Kroah-Hartman References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-20-swboyd@chromium.org> From: Phil Reid Message-ID: Date: Wed, 31 Jul 2019 14:42:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190730181557.90391-20-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org G'day Stephen, A comment unrelated to your change. On 31/07/2019 02:15, Stephen Boyd wrote: .... > diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c > index 32f1c4a33b20..abe99856c823 100644 > --- a/drivers/iio/adc/at91_adc.c > +++ b/drivers/iio/adc/at91_adc.c > @@ -1179,10 +1179,8 @@ static int at91_adc_probe(struct platform_device *pdev) > idev->info = &at91_adc_info; > > st->irq = platform_get_irq(pdev, 0); > - if (st->irq < 0) { > - dev_err(&pdev->dev, "No IRQ ID is designated\n"); > + if (st->irq < 0) > return -ENODEV; Should this be returning st->irq instead of -ENODEV? eg: platform_get_irq can return -EPROBE_DEFER Pattern is repeated in a number of other places. > - } > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > Regards Phil Reid