Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5433831pxb; Sun, 13 Feb 2022 21:38:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAro4fVl+rYyw4QpzhliNe9UgEGeMtWdppoKc7I+cBnNKbjC7jUc4sgw4RpQsKnR7P1TZA X-Received: by 2002:a17:906:40ca:: with SMTP id a10mr5675324ejk.709.1644817082734; Sun, 13 Feb 2022 21:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644817082; cv=none; d=google.com; s=arc-20160816; b=Lq5FdhYW5Uv9j2eM5X0feQyoetWntM/ExjsEhI5ZbfUt20NXEObnY2MhuB05rYrvVC Hk5MkUhyVQinInkXqwK1OE/AUEQBANYliiXMLLfHHTB8mtc+Gg5m/A2eIYW0Y4U/1y0P QlIiYo7ywLKwPMV2gee2VQ63dAxDPSH3yXRIIkwheR3kop3Do+Pvw9FwdrjK51jfuSZH Izp2X1n2mgStroE7CXLMMvJPja1cRy8z4zvRLyh+ruIXKziLQ1Z3Uuebbc/r3hlG9tV/ ixpqkugaV0usn+a6mExKROIGpIGW6BkBL2SbF9oyxBhOqCEgMMnghxrK5nMjS7kT+UJb JwKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-filter; bh=lpbFTgsC6IOpBnbaR6y66WRIIk35GXDTbub/hfpJ0es=; b=xkQabgpgDMl2S9Jn+w4786bhwJpKbtb/wPjdUEW8dDcDd1wzY17pcGieJSSP6TZ2MZ GLLrE5QODxSOFjTgg2Wt3Xlb6Z0EoxBgloy/G/v3oTmaoHmyJK5r01WqwV7CN1g5jdVc rNWt2ZKPpZoVZh6zq/GSV/h0DLttgzvqvSp2WF+OSbdxX/JfsSm9UKCy7hVsyhw9WK9f mT6kHnOiggtOlg3fuVYGTjyPMhj7zBa+BsQwhvvg3lRb0PLjJWy0ppw07eWCSccH9TIX dwqDaI5fF9N/bVlUOqsIixh27NFaMdx73ST5+m+r11KI6AzQV1bk8jwIMw4BTFYlX9it mZ7w== 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 js9si13562564ejc.662.2022.02.13.21.37.39; Sun, 13 Feb 2022 21:38:02 -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 S231408AbiBLUQt (ORCPT + 99 others); Sat, 12 Feb 2022 15:16:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbiBLUQr (ORCPT ); Sat, 12 Feb 2022 15:16:47 -0500 Received: from mxout03.lancloud.ru (mxout03.lancloud.ru [45.84.86.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23821B42 for ; Sat, 12 Feb 2022 12:16:40 -0800 (PST) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout03.lancloud.ru E1DB720601B3 Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Sergey Shtylyov To: Greg Kroah-Hartman , "Rafael J. Wysocki" , CC: Andy Shevchenko Subject: [PATCH v2 0/2] Make platform_get_irq[_byname]_optional() optional Date: Sat, 12 Feb 2022 23:16:29 +0300 Message-ID: <20220212201631.12648-1-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here are 2 patches making platform_get_irq[_byname]_optional() return 0 on an IRQ not being found, thus aligning those with the other *_optional() APIs; they are against the 'driver-core-next' branch of GregKH's 'driver-core.git' repo plus the patch disallowing IRQ0 in platform_get_irq() and its ilk (which happily applies to 'driver-core-next' as well): https://lore.kernel.org/lkml/5e001ec1-d3f1-bcb8-7f30-a6301fd9930c@omp.ru/ Sergey Shtylyov (2): platform: make platform_get_irq_optional() optional platform: make platform_get_irq_byname_optional() optional drivers/base/platform.c | 77 +++++++++++++------ drivers/char/ipmi/bt-bmc.c | 6 +- drivers/counter/interrupt-cnt.c | 4 +- drivers/gpio/gpio-altera.c | 3 +- drivers/gpio/gpio-mvebu.c | 2 +- drivers/gpio/gpio-tqmx86.c | 2 +- drivers/gpu/drm/lima/lima_device.c | 2 +- drivers/i2c/busses/i2c-brcmstb.c | 8 +- drivers/i2c/busses/i2c-ocores.c | 4 +- drivers/mailbox/tegra-hsp.c | 4 +- drivers/mmc/host/sh_mmcif.c | 4 +- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 4 +- drivers/net/can/rcar/rcar_canfd.c | 4 +- drivers/net/dsa/b53/b53_srab.c | 2 +- drivers/net/ethernet/davicom/dm9000.c | 2 +- drivers/net/ethernet/freescale/fec_main.c | 2 +- drivers/net/ethernet/freescale/fec_ptp.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 4 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 4 +- .../pci/controller/dwc/pcie-designware-host.c | 2 +- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 4 +- drivers/platform/chrome/cros_ec_lpc.c | 2 +- drivers/platform/x86/intel/punit_ipc.c | 2 +- drivers/spi/spi-bcm-qspi.c | 2 +- drivers/spi/spi-hisi-sfc-v3xx.c | 2 +- drivers/spi/spi-mtk-nor.c | 3 +- drivers/spi/spi-rspi.c | 8 +- drivers/thermal/rcar_gen3_thermal.c | 2 + drivers/tty/serial/8250/8250_mtk.c | 4 +- drivers/tty/serial/sh-sci.c | 6 +- drivers/uio/uio_pdrv_genirq.c | 2 +- drivers/usb/cdns3/cdns3-plat.c | 5 +- drivers/usb/host/xhci-mtk.c | 2 +- drivers/usb/mtu3/mtu3_core.c | 2 +- drivers/vfio/platform/vfio_platform.c | 3 +- sound/soc/dwc/dwc-i2s.c | 4 +- 36 files changed, 111 insertions(+), 86 deletions(-) -- 2.26.3