Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3711049pxb; Fri, 4 Feb 2022 14:48:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxv7Hnt90dUecvVcicGE1erwGzhKiL6P/wEnBfp2sxFmMdV778WdlOd8QRgvnpyA98yN49V X-Received: by 2002:a17:907:1ca5:: with SMTP id nb37mr899215ejc.277.1644014912905; Fri, 04 Feb 2022 14:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644014912; cv=none; d=google.com; s=arc-20160816; b=yuOYYHdu6DGOH8iuZwzWQYtxDPlEGCda7zqNNkOKf4VwsU9tTEJ83V1jmz1aIB5Wlo 1bXLZb/FqxC8fWA/9KPV0tDmMa/BnW7L5XaI4OFreRWkEv5BDjjT8wfmpTX2AtXV/eyF FS72ZW+a28gfKO7KhnLYXR+hUtJCpSSoVj5W2KgkQHmrhrQXBc/GRpD+Iv9UWu3SqWbR h+PI6KdVtVI1DM7escMSQCOmZdqWvQRt4Ck8JKEbLU41G971iJS7inD16f4hJNDaoAlp 3tP5wmm8VSrBlir+qfv0lDOQllo0ojymkgnVJrscz3mAXNfefoAnoiOKWyLIHwyOo7EF r5Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:organization:cc:to:subject :from:dkim-filter; bh=7xDSMyMExOXpsHrNJJHZg/Cm8on+nlWez/Fn+wt72rE=; b=YupZ2//C9SPE4jn5tOOww0qHWj18rp6Hy4k5oLBfFVH6vBDHRnDgYKbTAbUzubF3pF +KvwmcHIlyYThZ+Fz4yrgVfZm1Muz7k973fLqgSPeaMt+4Q/LprE5b/+ehSDQ+0+P82F crZzNxJwMtkBUilqbeMjTGdMDMIjYKqym9uVXU9LYKi7bPjpJR5CvzYcdp0DCNGrVHAV lejYp+Bk4wy1egULRh0uyVIfsYijqttecdDI/Gt3daVAPw+9bwViUlKW3qUjdkJ+DK2F ZMcqLLlIc/3PVgsAzu6LgORb799Ybnk3+Jb1NzBOwxgVtkPmQvtkA/rjIOKBBZDzeQoU zsiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17si2430962edd.191.2022.02.04.14.48.07; Fri, 04 Feb 2022 14:48:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237569AbiBDUZa (ORCPT + 99 others); Fri, 4 Feb 2022 15:25:30 -0500 Received: from mxout01.lancloud.ru ([45.84.86.81]:59662 "EHLO mxout01.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232968AbiBDUZ1 (ORCPT ); Fri, 4 Feb 2022 15:25:27 -0500 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout01.lancloud.ru E2E8D2076EA7 Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Sergey Shtylyov Subject: [PATCH] platform: use dev_err_probe() in platform_get_irq_byname() To: Greg Kroah-Hartman , "Rafael J. Wysocki" CC: Organization: Open Mobile Platform Message-ID: <11a4aeb2-721c-56a9-919b-f356a30720e0@omp.ru> Date: Fri, 4 Feb 2022 23:25:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 2043727c2882 ("driver core: platform: Make use of the helper function dev_err_probe()") missed to also convert platform_get_irq_byname() for some strange reason -- do that now. Signed-off-by: Sergey Shtylyov --- drivers/base/platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: driver-core/drivers/base/platform.c =================================================================== --- driver-core.orig/drivers/base/platform.c +++ driver-core/drivers/base/platform.c @@ -469,9 +469,9 @@ int platform_get_irq_byname(struct platf int ret; ret = __platform_get_irq_byname(dev, name); - if (ret < 0 && ret != -EPROBE_DEFER) - dev_err(&dev->dev, "IRQ %s not found\n", name); - + if (ret < 0) + return dev_err_probe(&dev->dev, ret, "IRQ %s not found\n", + name); return ret; } EXPORT_SYMBOL_GPL(platform_get_irq_byname);