Add error message to platform_get_irq*()
Subsystems (220)
v4 cover Add error message to platform_get_irq*()
This patch series adds an error message to platform_get_irq() and platform_get_irq_byname() and then removes driver specific error messages that become redundant with that change as well as adds a coccinelle script to detect these sorts of problems earlier.
This is a resend of the first patch from a few months ago[1]. I've added two new patches at the end to make the script official and to go and convert various drivers in the tree. I've only compile tested and nothing else. Merge strategy is to see if Greg will apply the first two and then the last one can go via coccinelle team.
[1] https://lore.kernel.org/r/[email protected]/
Changes from v3:
* New patches at the end
* Picked up tags from the list
Stephen Boyd (3):
driver core: platform: Add an error message to platform_get_irq*()
treewide: Remove dev_err() usage after platform_get_irq()
coccinelle: Add script to check for platform_get_irq() excessive
prints
arch/arm/plat-omap/dma.c | 1 - arch/arm/plat-pxa/ssp.c | 1 - arch/arm/plat-samsung/adc.c | 1 - arch/mips/ralink/timer.c | 1 - drivers/ata/libahci_platform.c | 2 - drivers/ata/pata_rb532_cf.c | 1 - drivers/ata/sata_highbank.c | 1 - drivers/base/platform.c | 31 ++++-- drivers/bus/sunxi-rsb.c | 1 - drivers/char/hw_random/imx-rngc.c | 1 - drivers/char/hw_random/omap-rng.c | 2 - drivers/char/hw_random/xgene-rng.c | 1 - drivers/clocksource/em_sti.c | 1 - drivers/clocksource/sh_cmt.c | 2 - drivers/clocksource/sh_tmu.c | 2 - drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 - drivers/crypto/atmel-aes.c | 1 - drivers/crypto/atmel-sha.c | 1 - drivers/crypto/atmel-tdes.c | 1 - drivers/crypto/ccree/cc_driver.c | 1 - drivers/crypto/img-hash.c | 1 - drivers/crypto/mediatek/mtk-platform.c | 1 - drivers/crypto/mxs-dcp.c | 2 - drivers/crypto/omap-aes.c | 1 - drivers/crypto/omap-des.c | 1 - drivers/crypto/omap-sham.c | 1 - drivers/crypto/sahara.c | 1 - drivers/crypto/stm32/stm32-cryp.c | 1 - drivers/crypto/stm32/stm32-hash.c | 1 - drivers/devfreq/tegra-devfreq.c | 1 - drivers/dma/dma-jz4780.c | 1 - drivers/dma/fsl-edma.c | 2 - drivers/dma/fsl-qdma.c | 3 - drivers/dma/mediatek/mtk-uart-apdma.c | 1 - drivers/dma/qcom/hidma_mgmt.c | 1 - drivers/dma/s3c24xx-dma.c | 2 - drivers/dma/sh/rcar-dmac.c | 1 - drivers/dma/sh/usb-dmac.c | 1 - drivers/dma/st_fdma.c | 1 - drivers/dma/stm32-dma.c | 3 - drivers/dma/stm32-mdma.c | 1 - drivers/dma/sun4i-dma.c | 1 - drivers/dma/sun6i-dma.c | 1 - drivers/dma/uniphier-mdmac.c | 2 - drivers/dma/xgene-dma.c | 2 - drivers/edac/altera_edac.c | 2 - drivers/edac/xgene_edac.c | 1 - drivers/extcon/extcon-adc-jack.c | 1 - drivers/firmware/tegra/bpmp-tegra210.c | 2 - drivers/fpga/zynq-fpga.c | 1 - drivers/gpio/gpio-brcmstb.c | 1 - drivers/gpio/gpio-eic-sprd.c | 1 - drivers/gpio/gpio-grgpio.c | 2 - drivers/gpio/gpio-max77620.c | 1 - drivers/gpio/gpio-pmic-eic-sprd.c | 1 - drivers/gpio/gpio-sprd.c | 1 - drivers/gpio/gpio-tb10x.c | 1 - drivers/gpio/gpio-tegra.c | 1 - drivers/gpio/gpio-zx.c | 1 - drivers/gpio/gpio-zynq.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 1 - drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1 - drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 - drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 - drivers/gpu/drm/exynos/exynos_drm_scaler.c | 1 - drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 1 - drivers/gpu/drm/imx/imx-tve.c | 1 - drivers/gpu/drm/ingenic/ingenic-drm.c | 1 - drivers/gpu/drm/mediatek/mtk_cec.c | 1 - drivers/gpu/drm/mediatek/mtk_dpi.c | 1 - drivers/gpu/drm/mediatek/mtk_dsi.c | 1 - drivers/gpu/drm/meson/meson_dw_hdmi.c | 1 - drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 - drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 - drivers/gpu/drm/tegra/dc.c | 1 - drivers/gpu/drm/tegra/dpaux.c | 1 - drivers/gpu/drm/tegra/sor.c | 1 - drivers/gpu/host1x/dev.c | 1 - drivers/hsi/controllers/omap_ssi_core.c | 1 - drivers/hsi/controllers/omap_ssi_port.c | 1 - drivers/hwmon/jz4740-hwmon.c | 2 - drivers/hwmon/npcm750-pwm-fan.c | 1 - drivers/i2c/busses/i2c-altera.c | 1 - drivers/i2c/busses/i2c-axxia.c | 1 - drivers/i2c/busses/i2c-bcm-kona.c | 1 - drivers/i2c/busses/i2c-cht-wc.c | 1 - drivers/i2c/busses/i2c-efm32.c | 1 - drivers/i2c/busses/i2c-hix5hd2.c | 1 - drivers/i2c/busses/i2c-img-scb.c | 1 - drivers/i2c/busses/i2c-imx-lpi2c.c | 1 - drivers/i2c/busses/i2c-imx.c | 1 - drivers/i2c/busses/i2c-lpc2k.c | 1 - drivers/i2c/busses/i2c-meson.c | 1 - drivers/i2c/busses/i2c-omap.c | 1 - drivers/i2c/busses/i2c-owl.c | 1 - drivers/i2c/busses/i2c-pnx.c | 1 - drivers/i2c/busses/i2c-pxa.c | 1 - drivers/i2c/busses/i2c-qcom-geni.c | 1 - drivers/i2c/busses/i2c-qup.c | 1 - drivers/i2c/busses/i2c-rk3x.c | 1 - drivers/i2c/busses/i2c-sprd.c | 1 - drivers/i2c/busses/i2c-stm32f7.c | 6 -- drivers/i2c/busses/i2c-sun6i-p2wi.c | 1 - drivers/i2c/busses/i2c-synquacer.c | 1 - drivers/i2c/busses/i2c-uniphier-f.c | 1 - drivers/i2c/busses/i2c-uniphier.c | 1 - drivers/i2c/busses/i2c-xlp9xx.c | 1 - drivers/iio/adc/ad7606_par.c | 1 - drivers/iio/adc/at91_adc.c | 1 - drivers/iio/adc/axp288_adc.c | 1 - drivers/iio/adc/bcm_iproc_adc.c | 1 - drivers/iio/adc/da9150-gpadc.c | 1 - drivers/iio/adc/envelope-detector.c | 2 - drivers/iio/adc/exynos_adc.c | 1 - drivers/iio/adc/fsl-imx25-gcq.c | 1 - drivers/iio/adc/imx7d_adc.c | 1 - drivers/iio/adc/lpc32xx_adc.c | 1 - drivers/iio/adc/npcm_adc.c | 1 - drivers/iio/adc/rockchip_saradc.c | 1 - drivers/iio/adc/sc27xx_adc.c | 1 - drivers/iio/adc/spear_adc.c | 1 - drivers/iio/adc/stm32-adc-core.c | 1 - drivers/iio/adc/stm32-adc.c | 1 - drivers/iio/adc/stm32-dfsdm-adc.c | 2 - drivers/iio/adc/sun4i-gpadc-iio.c | 1 - drivers/iio/adc/twl6030-gpadc.c | 1 - drivers/iio/adc/vf610_adc.c | 1 - drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 - drivers/input/keyboard/bcm-keypad.c | 1 - drivers/input/keyboard/davinci_keyscan.c | 1 - drivers/input/keyboard/imx_keypad.c | 1 - drivers/input/keyboard/lpc32xx-keys.c | 1 - drivers/input/keyboard/nomadik-ske-keypad.c | 1 - drivers/input/keyboard/nspire-keypad.c | 1 - drivers/input/keyboard/opencores-kbd.c | 1 - drivers/input/keyboard/pmic8xxx-keypad.c | 2 - drivers/input/keyboard/pxa27x_keypad.c | 1 - drivers/input/keyboard/pxa930_rotary.c | 1 - drivers/input/keyboard/sh_keysc.c | 1 - drivers/input/keyboard/snvs_pwrkey.c | 1 - drivers/input/keyboard/spear-keyboard.c | 1 - drivers/input/keyboard/st-keyscan.c | 1 - drivers/input/keyboard/tegra-kbc.c | 1 - drivers/input/keyboard/w90p910_keypad.c | 1 - drivers/input/misc/88pm80x_onkey.c | 1 - drivers/input/misc/88pm860x_onkey.c | 1 - drivers/input/misc/ab8500-ponkey.c | 2 - drivers/input/misc/axp20x-pek.c | 4 - drivers/input/misc/da9055_onkey.c | 2 - drivers/input/misc/da9063_onkey.c | 1 - drivers/input/misc/e3x0-button.c | 4 - drivers/input/misc/hisi_powerkey.c | 2 - drivers/input/misc/max8925_onkey.c | 2 - drivers/input/misc/pm8941-pwrkey.c | 1 - drivers/input/misc/rk805-pwrkey.c | 2 - drivers/input/misc/stpmic1_onkey.c | 4 - drivers/input/misc/tps65218-pwrbutton.c | 1 - drivers/input/misc/twl6040-vibra.c | 1 - drivers/input/mouse/pxa930_trkball.c | 1 - drivers/input/serio/arc_ps2.c | 1 - drivers/input/serio/ps2-gpio.c | 2 - drivers/input/touchscreen/88pm860x-ts.c | 1 - drivers/input/touchscreen/bcm_iproc_tsc.c | 1 - drivers/input/touchscreen/fsl-imx25-tcq.c | 1 - drivers/input/touchscreen/imx6ul_tsc.c | 2 - drivers/input/touchscreen/lpc32xx_ts.c | 1 - drivers/iommu/exynos-iommu.c | 1 - drivers/iommu/msm_iommu.c | 1 - drivers/iommu/qcom_iommu.c | 1 - drivers/irqchip/irq-imgpdc.c | 2 - drivers/irqchip/irq-keystone.c | 1 - drivers/irqchip/qcom-irq-combiner.c | 1 - drivers/mailbox/armada-37xx-rwtm-mailbox.c | 1 - drivers/mailbox/platform_mhu.c | 1 - drivers/mailbox/stm32-ipcc.c | 5 - drivers/mailbox/zynqmp-ipi-mailbox.c | 1 - drivers/media/platform/am437x/am437x-vpfe.c | 1 - .../media/platform/atmel/atmel-sama5d2-isc.c | 1 - drivers/media/platform/exynos4-is/mipi-csis.c | 1 - drivers/media/platform/imx-pxp.c | 1 - drivers/media/platform/omap3isp/isp.c | 1 - drivers/media/platform/renesas-ceu.c | 1 - drivers/media/platform/rockchip/rga/rga.c | 1 - drivers/media/platform/s3c-camif/camif-core.c | 1 - .../platform/sti/c8sectpfe/c8sectpfe-core.c | 2 - drivers/media/platform/sti/hva/hva-hw.c | 2 - drivers/media/platform/stm32/stm32-dcmi.c | 2 - .../platform/sunxi/sun6i-csi/sun6i_csi.c | 1 - drivers/media/rc/img-ir/img-ir-core.c | 1 - drivers/media/rc/ir-hix5hd2.c | 1 - drivers/media/rc/meson-ir.c | 1 - drivers/media/rc/mtk-cir.c | 1 - drivers/media/rc/sunxi-cir.c | 1 - drivers/memory/emif.c | 2 - drivers/memory/tegra/mc.c | 1 - drivers/mfd/ab8500-debugfs.c | 2 - drivers/mfd/db8500-prcmu.c | 1 - drivers/mfd/fsl-imx25-tsadc.c | 1 - drivers/mfd/intel_soc_pmic_bxtwc.c | 1 - drivers/mfd/jz4740-adc.c | 2 - drivers/mfd/qcom_rpm.c | 3 - drivers/mfd/sm501.c | 1 - drivers/misc/spear13xx_pcie_gadget.c | 1 - drivers/mmc/host/bcm2835.c | 1 - drivers/mmc/host/jz4740_mmc.c | 1 - drivers/mmc/host/meson-gx-mmc.c | 1 - drivers/mmc/host/mxcmmc.c | 1 - drivers/mmc/host/s3cmci.c | 1 - drivers/mmc/host/sdhci-msm.c | 2 - drivers/mmc/host/sdhci-pltfm.c | 1 - drivers/mmc/host/sdhci-s3c.c | 1 - drivers/mmc/host/sdhci_f_sdh30.c | 1 - drivers/mmc/host/uniphier-sd.c | 1 - drivers/mtd/devices/spear_smi.c | 1 - drivers/mtd/nand/raw/denali_dt.c | 1 - drivers/mtd/nand/raw/hisi504_nand.c | 1 - drivers/mtd/nand/raw/lpc32xx_mlc.c | 1 - drivers/mtd/nand/raw/marvell_nand.c | 1 - drivers/mtd/nand/raw/meson_nand.c | 1 - drivers/mtd/nand/raw/mtk_ecc.c | 1 - drivers/mtd/nand/raw/mtk_nand.c | 1 - drivers/mtd/nand/raw/omap2.c | 2 - drivers/mtd/nand/raw/sh_flctl.c | 1 - drivers/mtd/nand/raw/stm32_fmc2_nand.c | 2 - drivers/mtd/nand/raw/sunxi_nand.c | 1 - drivers/mtd/spi-nor/cadence-quadspi.c | 1 - drivers/net/can/janz-ican3.c | 1 - drivers/net/can/rcar/rcar_can.c | 1 - drivers/net/can/rcar/rcar_canfd.c | 2 - drivers/net/can/sun4i_can.c | 1 - drivers/net/ethernet/amd/au1000_eth.c | 1 - drivers/net/ethernet/amd/xgbe/xgbe-platform.c | 2 - drivers/net/ethernet/apm/xgene-v2/main.c | 1 - .../net/ethernet/apm/xgene/xgene_enet_main.c | 1 - drivers/net/ethernet/aurora/nb8800.c | 1 - .../net/ethernet/broadcom/bgmac-platform.c | 1 - drivers/net/ethernet/cortina/gemini.c | 1 - drivers/net/ethernet/davicom/dm9000.c | 2 - drivers/net/ethernet/hisilicon/hisi_femac.c | 1 - drivers/net/ethernet/lantiq_xrx200.c | 4 - drivers/net/ethernet/nuvoton/w90p910_ether.c | 2 - drivers/net/ethernet/qualcomm/emac/emac.c | 2 - drivers/net/ethernet/socionext/sni_ave.c | 1 - .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 4 - .../ethernet/stmicro/stmmac/stmmac_platform.c | 4 - .../net/wireless/mediatek/mt76/mt7603/soc.c | 1 - drivers/pci/controller/dwc/pci-dra7xx.c | 2 - drivers/pci/controller/dwc/pci-exynos.c | 2 - drivers/pci/controller/dwc/pci-imx6.c | 1 - drivers/pci/controller/dwc/pci-keystone.c | 1 - drivers/pci/controller/dwc/pci-meson.c | 1 - drivers/pci/controller/dwc/pcie-armada8k.c | 1 - drivers/pci/controller/dwc/pcie-artpec6.c | 1 - drivers/pci/controller/dwc/pcie-histb.c | 1 - drivers/pci/controller/dwc/pcie-kirin.c | 2 - drivers/pci/controller/dwc/pcie-spear13xx.c | 1 - drivers/pci/controller/pci-tegra.c | 2 - drivers/pci/controller/pci-v3-semi.c | 1 - drivers/pci/controller/pci-xgene-msi.c | 2 - drivers/pci/controller/pcie-altera-msi.c | 1 - drivers/pci/controller/pcie-altera.c | 1 - drivers/pci/controller/pcie-mobiveil.c | 1 - drivers/pci/controller/pcie-rockchip-host.c | 3 - drivers/pci/controller/pcie-tango.c | 1 - drivers/pci/controller/pcie-xilinx-nwl.c | 5 - drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 1 - drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 1 - drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 1 - drivers/perf/qcom_l2_pmu.c | 3 - drivers/perf/xgene_pmu.c | 1 - drivers/pinctrl/intel/pinctrl-cherryview.c | 1 - drivers/pinctrl/intel/pinctrl-intel.c | 1 - drivers/pinctrl/pinctrl-amd.c | 1 - drivers/pinctrl/pinctrl-oxnas.c | 1 - drivers/pinctrl/pinctrl-pic32.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/qcom/pinctrl-msm.c | 1 - drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c | 2 - drivers/platform/mellanox/mlxreg-hotplug.c | 2 - drivers/platform/x86/intel_bxtwc_tmu.c | 1 - drivers/platform/x86/intel_int0002_vgpio.c | 1 - drivers/platform/x86/intel_pmc_ipc.c | 1 - drivers/power/supply/88pm860x_battery.c | 2 - drivers/power/supply/axp288_charger.c | 1 - drivers/power/supply/bd70528-charger.c | 2 - drivers/power/supply/da9150-charger.c | 2 - drivers/power/supply/da9150-fg.c | 1 - drivers/power/supply/goldfish_battery.c | 1 - drivers/power/supply/jz4740-battery.c | 1 - drivers/power/supply/qcom_smbb.c | 2 - drivers/power/supply/sc27xx_fuel_gauge.c | 1 - drivers/pwm/pwm-sti.c | 1 - drivers/regulator/da9062-regulator.c | 1 - drivers/regulator/da9063-regulator.c | 1 - drivers/remoteproc/da8xx_remoteproc.c | 1 - drivers/remoteproc/keystone_remoteproc.c | 4 - drivers/remoteproc/qcom_q6v5.c | 20 ---- drivers/rtc/rtc-88pm80x.c | 1 - drivers/rtc/rtc-88pm860x.c | 1 - drivers/rtc/rtc-ac100.c | 1 - drivers/rtc/rtc-armada38x.c | 1 - drivers/rtc/rtc-asm9260.c | 1 - drivers/rtc/rtc-at91rm9200.c | 1 - drivers/rtc/rtc-at91sam9.c | 1 - drivers/rtc/rtc-bd70528.c | 1 - drivers/rtc/rtc-davinci.c | 1 - drivers/rtc/rtc-jz4740.c | 1 - drivers/rtc/rtc-max77686.c | 2 - drivers/rtc/rtc-mt7622.c | 1 - drivers/rtc/rtc-pic32.c | 1 - drivers/rtc/rtc-pm8xxx.c | 1 - drivers/rtc/rtc-puv3.c | 2 - drivers/rtc/rtc-pxa.c | 2 - drivers/rtc/rtc-rk808.c | 3 - drivers/rtc/rtc-s3c.c | 2 - drivers/rtc/rtc-sc27xx.c | 1 - drivers/rtc/rtc-spear.c | 1 - drivers/rtc/rtc-stm32.c | 1 - drivers/rtc/rtc-sun6i.c | 1 - drivers/rtc/rtc-sunxi.c | 1 - drivers/rtc/rtc-tegra.c | 1 - drivers/rtc/rtc-vt8500.c | 1 - drivers/rtc/rtc-xgene.c | 1 - drivers/rtc/rtc-zynqmp.c | 2 - drivers/scsi/ufs/ufshcd-pltfrm.c | 1 - drivers/soc/fsl/qbman/bman_portal.c | 1 - drivers/soc/fsl/qbman/qman_portal.c | 1 - drivers/soc/qcom/smp2p.c | 1 - drivers/spi/atmel-quadspi.c | 1 - drivers/spi/spi-armada-3700.c | 1 - drivers/spi/spi-bcm2835.c | 1 - drivers/spi/spi-bcm2835aux.c | 1 - drivers/spi/spi-bcm63xx-hsspi.c | 1 - drivers/spi/spi-bcm63xx.c | 1 - drivers/spi/spi-cadence.c | 1 - drivers/spi/spi-dw-mmio.c | 1 - drivers/spi/spi-efm32.c | 1 - drivers/spi/spi-ep93xx.c | 1 - drivers/spi/spi-fsl-dspi.c | 1 - drivers/spi/spi-fsl-qspi.c | 1 - drivers/spi/spi-geni-qcom.c | 1 - drivers/spi/spi-lantiq-ssc.c | 3 - drivers/spi/spi-mt65xx.c | 1 - drivers/spi/spi-npcm-pspi.c | 1 - drivers/spi/spi-nuc900.c | 1 - drivers/spi/spi-nxp-fspi.c | 1 - drivers/spi/spi-pic32-sqi.c | 1 - drivers/spi/spi-pic32.c | 3 - drivers/spi/spi-qcom-qspi.c | 1 - drivers/spi/spi-s3c24xx.c | 1 - drivers/spi/spi-sh-msiof.c | 1 - drivers/spi/spi-sh.c | 1 - drivers/spi/spi-sifive.c | 1 - drivers/spi/spi-slave-mt27xx.c | 1 - drivers/spi/spi-sprd.c | 1 - drivers/spi/spi-stm32-qspi.c | 2 - drivers/spi/spi-sun4i.c | 1 - drivers/spi/spi-sun6i.c | 1 - drivers/spi/spi-synquacer.c | 2 - drivers/spi/spi-ti-qspi.c | 1 - drivers/spi/spi-uniphier.c | 1 - drivers/spi/spi-xlp.c | 1 - drivers/spi/spi-zynq-qspi.c | 1 - drivers/spi/spi-zynqmp-gqspi.c | 1 - drivers/staging/emxx_udc/emxx_udc.c | 1 - drivers/staging/goldfish/goldfish_audio.c | 1 - .../staging/media/allegro-dvt/allegro-core.c | 1 - drivers/staging/media/hantro/hantro_drv.c | 1 - drivers/staging/media/imx/imx7-media-csi.c | 1 - drivers/staging/media/imx/imx7-mipi-csis.c | 1 - drivers/staging/media/meson/vdec/esparser.c | 1 - drivers/staging/media/omap4iss/iss.c | 1 - .../staging/media/sunxi/cedrus/cedrus_hw.c | 2 - drivers/staging/most/dim2/dim2.c | 2 - drivers/staging/mt7621-dma/mtk-hsdma.c | 1 - drivers/staging/nvec/nvec.c | 1 - drivers/staging/ralink-gdma/ralink-gdma.c | 1 - .../interface/vchiq_arm/vchiq_2835_arm.c | 1 - drivers/thermal/broadcom/brcmstb_thermal.c | 1 - drivers/thermal/da9062-thermal.c | 1 - drivers/thermal/db8500_thermal.c | 2 - drivers/thermal/rockchip_thermal.c | 1 - drivers/thermal/st/st_thermal_memmap.c | 1 - drivers/thermal/st/stm_thermal.c | 1 - drivers/thermal/ti-soc-thermal/ti-bandgap.c | 1 - drivers/tty/serial/8250/8250_bcm2835aux.c | 1 - drivers/tty/serial/8250/8250_lpc18xx.c | 1 - drivers/tty/serial/8250/8250_uniphier.c | 1 - drivers/tty/serial/amba-pl011.c | 2 - drivers/tty/serial/fsl_lpuart.c | 1 - drivers/tty/serial/lpc32xx_hs.c | 2 - drivers/tty/serial/mvebu-uart.c | 3 - drivers/tty/serial/owl-uart.c | 1 - drivers/tty/serial/qcom_geni_serial.c | 1 - drivers/tty/serial/rda-uart.c | 1 - drivers/tty/serial/sccnxp.c | 1 - drivers/tty/serial/serial-tegra.c | 1 - drivers/tty/serial/sifive.c | 1 - drivers/tty/serial/sprd_serial.c | 1 - drivers/tty/serial/stm32-usart.c | 2 - drivers/uio/uio_dmem_genirq.c | 1 - drivers/usb/chipidea/core.c | 1 - drivers/usb/dwc2/platform.c | 1 - drivers/usb/dwc3/dwc3-keystone.c | 1 - drivers/usb/dwc3/dwc3-omap.c | 1 - drivers/usb/gadget/udc/aspeed-vhub/core.c | 1 - drivers/usb/gadget/udc/bcm63xx_udc.c | 2 - drivers/usb/gadget/udc/bdc/bdc_core.c | 1 - drivers/usb/gadget/udc/gr_udc.c | 2 - drivers/usb/gadget/udc/lpc32xx_udc.c | 2 - drivers/usb/gadget/udc/renesas_usb3.c | 1 - drivers/usb/gadget/udc/s3c-hsudc.c | 1 - drivers/usb/gadget/udc/udc-xilinx.c | 1 - drivers/usb/host/ehci-atmel.c | 3 - drivers/usb/host/ehci-omap.c | 1 - drivers/usb/host/ehci-orion.c | 3 - drivers/usb/host/ehci-platform.c | 1 - drivers/usb/host/ehci-sh.c | 3 - drivers/usb/host/ehci-st.c | 1 - drivers/usb/host/imx21-hcd.c | 1 - drivers/usb/host/ohci-platform.c | 1 - drivers/usb/host/ohci-st.c | 1 - drivers/usb/mtu3/mtu3_core.c | 1 - drivers/usb/phy/phy-ab8500-usb.c | 3 - drivers/usb/typec/tcpm/wcove.c | 1 - drivers/video/fbdev/atmel_lcdfb.c | 1 - drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 1 - drivers/video/fbdev/nuc900fb.c | 1 - drivers/video/fbdev/pxa168fb.c | 1 - drivers/video/fbdev/pxa3xx-gcu.c | 1 - drivers/video/fbdev/pxafb.c | 1 - drivers/video/fbdev/s3c2410fb.c | 1 - drivers/video/fbdev/vt8500lcdfb.c | 1 - drivers/watchdog/sprd_wdt.c | 1 - scripts/coccinelle/api/platform_get_irq.cocci | 102 ++++++++++++++++++ sound/soc/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - sound/soc/bcm/cygnus-ssp.c | 1 - sound/soc/codecs/msm8916-wcd-analog.c | 3 - sound/soc/codecs/twl6040.c | 1 - sound/soc/fsl/fsl_asrc.c | 1 - sound/soc/fsl/fsl_esai.c | 1 - sound/soc/fsl/fsl_sai.c | 1 - sound/soc/fsl/fsl_spdif.c | 1 - sound/soc/fsl/fsl_ssi.c | 1 - sound/soc/fsl/imx-ssi.c | 1 - sound/soc/kirkwood/kirkwood-i2s.c | 1 - sound/soc/mediatek/common/mtk-btcvsd.c | 1 - sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1 - sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 1 - sound/soc/mxs/mxs-saif.c | 2 - sound/soc/qcom/lpass-platform.c | 2 - sound/soc/sof/intel/bdw.c | 2 - sound/soc/sof/intel/byt.c | 2 - sound/soc/sprd/sprd-mcdt.c | 1 - sound/soc/sti/sti_uniperif.c | 1 - sound/soc/stm/stm32_i2s.c | 2 - sound/soc/stm/stm32_sai.c | 1 - sound/soc/stm/stm32_spdifrx.c | 1 - sound/soc/sunxi/sun4i-i2s.c | 1 - sound/soc/uniphier/aio-dma.c | 1 - sound/soc/xilinx/xlnx_formatter_pcm.c | 2 - sound/soc/xtensa/xtfpga-i2s.c | 1 - sound/x86/intel_hdmi_audio.c | 1 - 464 files changed, 125 insertions(+), 623 deletions(-) create mode 100644 scripts/coccinelle/api/platform_get_irq.cocci
base-commit: 7b5cf701ea9c395c792e2a7e3b7caf4c68b87721
Signature · 1 line
Sent by a computer through tubes
PATCH v4 1/3 driver core: platform: Add an error message to platform_get_irq*()
A grep of the kernel shows that many drivers print an error message if they fail to get the irq they're looking for. Furthermore, those drivers all decide to print the device name, or not, and the irq they were requesting, or not, etc. Let's consolidate all these error messages into the API itself, allowing us to get rid of the error messages in each driver.
--- drivers/base/platform.c | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-)
drivers/base/platform.c +23 -8
@@ -99,12 +99,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,EXPORT_SYMBOL_GPL (devm_platform_ioremap_resource);#endif /* CONFIG_HAS_IOMEM */ -/** -* platform_get_irq - get an IRQ for a device -* @dev: platform device -* @num: IRQ number index -*/ -int platform_get_irq (struct platform_device *dev,unsigned int num) +static int __platform_get_irq (struct platform_device *dev,unsigned int num) {#ifdef CONFIG_SPARC /* sparc does not have irqs represented as IORESOURCE_IRQ resources */
@@ -163,6 +158,22 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)return -ENXIO ;#endif } + +/** +* platform_get_irq - get an IRQ for a device +* @dev: platform device +* @num: IRQ number index +*/ +int platform_get_irq (struct platform_device *dev,unsigned int num) +{ +int ret; + + ret =__platform_get_irq (dev, num); +if (ret <0 && ret != -EPROBE_DEFER ) +dev_err (&dev->dev,"IRQ index %u not found\n" , num); + +return ret; +}EXPORT_SYMBOL_GPL (platform_get_irq);/**
@@ -175,7 +186,7 @@ int platform_irq_count(struct platform_device *dev) {int ret, nr =0 ; -while ((ret =platform_get_irq (dev, nr)) >=0 ) +while ((ret =__platform_get_irq (dev, nr)) >=0 ) nr++;if (ret == -EPROBE_DEFER )
@@ -228,7 +239,11 @@ int platform_get_irq_byname(struct platform_device *dev, const char *name) } r =platform_get_resource_byname (dev,IORESOURCE_IRQ , name); -return r ? r->start : -ENXIO ; +if (r) +return r->start; + +dev_err (&dev->dev,"IRQ %s not found\n" , name); +return -ENXIO ; }EXPORT_SYMBOL_GPL (platform_get_irq_byname);
Signature · 1 line
Sent by a computer through tubes
Re: [PATCH v4 1/3] driver core: platform: Add an error message to platform_get_irq*()
Quoted 2 lines
Let's consolidate all these error messages into the API itself, allowing us to get rid of the error messages in each driver.
Such information from the commit descriptions sounds positive.
Quoted 1 line
+++
b/drivers/base/platform.c
…
Quoted 1 line
(quoted diff) +0
-0@@ -163,6 +158,22 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)
…
Quoted 5 lines
+/**
+ *platform_get_irq- get an IRQ for a device
+ * @dev: platform device
+ * @num: IRQ number index
+ */
Do you find the provided description for the programming interface really sufficient then?
Would it be more helpful to indicate the existence of an appropriate error message also in this software documentation (besides the C source code)?
Regards,
Markus
Re: [PATCH v4 1/3] driver core: platform: Add an error message to platform_get_irq*()
Quoting Markus Elfring (2019-07-24 08:00:43)
Quoted 16 lines
Quoted 2 lines
Let's consolidate all these error messages into the API itself, allowing us to get rid of the error messages in each driver.
Such information from the commit descriptions sounds positive.
Quoted 1 line
+++
b/drivers/base/platform.c…
Quoted 1 line
(quoted diff) +0
-0@@ -163,6 +158,22 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)…
Quoted 5 lines
+/**
+ *platform_get_irq- get an IRQ for a device
+ * @dev: platform device
+ * @num: IRQ number index
+ */
Quoted 5 lines
Do you find the provided description for the programming interface really sufficient then?
Would it be more helpful to indicate the existence of an appropriate error message also in this software documentation (besides the C source code)?
Sure. I'll add some more documentation in this patch too so that developers can easily see that they shouldn't print an error message themselves.
Re: [PATCH v4 1/3] driver core: platform: Add an error message to platform_get_irq*()
In reply to Stephen Boyd…
Quoted 2 lines
+++
b/drivers/base/platform.c(quoted diff) +0
-0@@ -99,12 +99,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
…
drivers/base/platform.c void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, · line 103
Quoted 3 lines
drivers/base/platform.c +1
-1-int platform_get_irq (struct platform_device *dev,unsigned int num) +static int __platform_get_irq (struct platform_device *dev,unsigned int num) {
…
I suggest to avoid the usage of double underscores in such identifiers. Will an other function name be more appropriate here?
Regards,
Markus
PATCH v4 2/3 treewide: Remove dev_err() usage after platform_get_irq()
In reply to Stephen BoydWe don't need dev_err() messages when platform_get_irq() fails now that platform_get_irq() prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.
// <smpl>
@@
expression ret;
struct platform_device *E;
@@
ret =
(platform_get_irq(E, ...)
|platform_get_irq_byname(E, ...)
);
if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>
---
I'm not Ccing anyone specifically besides those on the previous patch.
arch/arm/plat-omap/dma.c | 1 - arch/arm/plat-pxa/ssp.c | 1 - arch/arm/plat-samsung/adc.c | 1 - arch/mips/ralink/timer.c | 1 - drivers/ata/libahci_platform.c | 2 -- drivers/ata/pata_rb532_cf.c | 1 - drivers/ata/sata_highbank.c | 1 - drivers/bus/sunxi-rsb.c | 1 - drivers/char/hw_random/imx-rngc.c | 1 - drivers/char/hw_random/omap-rng.c | 2 -- drivers/char/hw_random/xgene-rng.c | 1 - drivers/clocksource/em_sti.c | 1 - drivers/clocksource/sh_cmt.c | 2 -- drivers/clocksource/sh_tmu.c | 2 -- drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 -- drivers/crypto/atmel-aes.c | 1 - drivers/crypto/atmel-sha.c | 1 - drivers/crypto/atmel-tdes.c | 1 - drivers/crypto/ccree/cc_driver.c | 1 - drivers/crypto/img-hash.c | 1 - drivers/crypto/mediatek/mtk-platform.c | 1 - drivers/crypto/mxs-dcp.c | 2 -- drivers/crypto/omap-aes.c | 1 - drivers/crypto/omap-des.c | 1 - drivers/crypto/omap-sham.c | 1 - drivers/crypto/sahara.c | 1 - drivers/crypto/stm32/stm32-cryp.c | 1 - drivers/crypto/stm32/stm32-hash.c | 1 - drivers/devfreq/tegra-devfreq.c | 1 - drivers/dma/dma-jz4780.c | 1 - drivers/dma/fsl-edma.c | 2 -- drivers/dma/fsl-qdma.c | 3 --- drivers/dma/mediatek/mtk-uart-apdma.c | 1 - drivers/dma/qcom/hidma_mgmt.c | 1 - drivers/dma/s3c24xx-dma.c | 2 -- drivers/dma/sh/rcar-dmac.c | 1 - drivers/dma/sh/usb-dmac.c | 1 - drivers/dma/st_fdma.c | 1 - drivers/dma/stm32-dma.c | 3 --- drivers/dma/stm32-mdma.c | 1 - drivers/dma/sun4i-dma.c | 1 - drivers/dma/sun6i-dma.c | 1 - drivers/dma/uniphier-mdmac.c | 2 -- drivers/dma/xgene-dma.c | 2 -- drivers/edac/altera_edac.c | 2 -- drivers/edac/xgene_edac.c | 1 - drivers/extcon/extcon-adc-jack.c | 1 - drivers/firmware/tegra/bpmp-tegra210.c | 2 -- drivers/fpga/zynq-fpga.c | 1 - drivers/gpio/gpio-brcmstb.c | 1 - drivers/gpio/gpio-eic-sprd.c | 1 - drivers/gpio/gpio-grgpio.c | 2 -- drivers/gpio/gpio-max77620.c | 1 - drivers/gpio/gpio-pmic-eic-sprd.c | 1 - drivers/gpio/gpio-sprd.c | 1 - drivers/gpio/gpio-tb10x.c | 1 - drivers/gpio/gpio-tegra.c | 1 - drivers/gpio/gpio-zx.c | 1 - drivers/gpio/gpio-zynq.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 1 - drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1 - drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 - drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 - drivers/gpu/drm/exynos/exynos_drm_scaler.c | 1 - drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 1 - drivers/gpu/drm/imx/imx-tve.c | 1 - drivers/gpu/drm/ingenic/ingenic-drm.c | 1 - drivers/gpu/drm/mediatek/mtk_cec.c | 1 - drivers/gpu/drm/mediatek/mtk_dpi.c | 1 - drivers/gpu/drm/mediatek/mtk_dsi.c | 1 - drivers/gpu/drm/meson/meson_dw_hdmi.c | 1 - drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 - drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 - drivers/gpu/drm/tegra/dc.c | 1 - drivers/gpu/drm/tegra/dpaux.c | 1 - drivers/gpu/drm/tegra/sor.c | 1 - drivers/gpu/host1x/dev.c | 1 - drivers/hsi/controllers/omap_ssi_core.c | 1 - drivers/hsi/controllers/omap_ssi_port.c | 1 - drivers/hwmon/jz4740-hwmon.c | 2 -- drivers/hwmon/npcm750-pwm-fan.c | 1 - drivers/i2c/busses/i2c-altera.c | 1 - drivers/i2c/busses/i2c-axxia.c | 1 - drivers/i2c/busses/i2c-bcm-kona.c | 1 - drivers/i2c/busses/i2c-cht-wc.c | 1 - drivers/i2c/busses/i2c-efm32.c | 1 - drivers/i2c/busses/i2c-hix5hd2.c | 1 - drivers/i2c/busses/i2c-img-scb.c | 1 - drivers/i2c/busses/i2c-imx-lpi2c.c | 1 - drivers/i2c/busses/i2c-imx.c | 1 - drivers/i2c/busses/i2c-lpc2k.c | 1 - drivers/i2c/busses/i2c-meson.c | 1 - drivers/i2c/busses/i2c-omap.c | 1 - drivers/i2c/busses/i2c-owl.c | 1 - drivers/i2c/busses/i2c-pnx.c | 1 - drivers/i2c/busses/i2c-pxa.c | 1 - drivers/i2c/busses/i2c-qcom-geni.c | 1 - drivers/i2c/busses/i2c-qup.c | 1 - drivers/i2c/busses/i2c-rk3x.c | 1 - drivers/i2c/busses/i2c-sprd.c | 1 - drivers/i2c/busses/i2c-stm32f7.c | 6 ------ drivers/i2c/busses/i2c-sun6i-p2wi.c | 1 - drivers/i2c/busses/i2c-synquacer.c | 1 - drivers/i2c/busses/i2c-uniphier-f.c | 1 - drivers/i2c/busses/i2c-uniphier.c | 1 - drivers/i2c/busses/i2c-xlp9xx.c | 1 - drivers/iio/adc/ad7606_par.c | 1 - drivers/iio/adc/at91_adc.c | 1 - drivers/iio/adc/axp288_adc.c | 1 - drivers/iio/adc/bcm_iproc_adc.c | 1 - drivers/iio/adc/da9150-gpadc.c | 1 - drivers/iio/adc/envelope-detector.c | 2 -- drivers/iio/adc/exynos_adc.c | 1 - drivers/iio/adc/fsl-imx25-gcq.c | 1 - drivers/iio/adc/imx7d_adc.c | 1 - drivers/iio/adc/lpc32xx_adc.c | 1 - drivers/iio/adc/npcm_adc.c | 1 - drivers/iio/adc/rockchip_saradc.c | 1 - drivers/iio/adc/sc27xx_adc.c | 1 - drivers/iio/adc/spear_adc.c | 1 - drivers/iio/adc/stm32-adc-core.c | 1 - drivers/iio/adc/stm32-adc.c | 1 - drivers/iio/adc/stm32-dfsdm-adc.c | 2 -- drivers/iio/adc/sun4i-gpadc-iio.c | 1 - drivers/iio/adc/twl6030-gpadc.c | 1 - drivers/iio/adc/vf610_adc.c | 1 - drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 - drivers/input/keyboard/bcm-keypad.c | 1 - drivers/input/keyboard/davinci_keyscan.c | 1 - drivers/input/keyboard/imx_keypad.c | 1 - drivers/input/keyboard/lpc32xx-keys.c | 1 - drivers/input/keyboard/nomadik-ske-keypad.c | 1 - drivers/input/keyboard/nspire-keypad.c | 1 - drivers/input/keyboard/opencores-kbd.c | 1 - drivers/input/keyboard/pmic8xxx-keypad.c | 2 -- drivers/input/keyboard/pxa27x_keypad.c | 1 - drivers/input/keyboard/pxa930_rotary.c | 1 - drivers/input/keyboard/sh_keysc.c | 1 - drivers/input/keyboard/snvs_pwrkey.c | 1 - drivers/input/keyboard/spear-keyboard.c | 1 - drivers/input/keyboard/st-keyscan.c | 1 - drivers/input/keyboard/tegra-kbc.c | 1 - drivers/input/keyboard/w90p910_keypad.c | 1 - drivers/input/misc/88pm80x_onkey.c | 1 - drivers/input/misc/88pm860x_onkey.c | 1 - drivers/input/misc/ab8500-ponkey.c | 2 -- drivers/input/misc/axp20x-pek.c | 4 ---- drivers/input/misc/da9055_onkey.c | 2 -- drivers/input/misc/da9063_onkey.c | 1 - drivers/input/misc/e3x0-button.c | 4 ---- drivers/input/misc/hisi_powerkey.c | 2 -- drivers/input/misc/max8925_onkey.c | 2 -- drivers/input/misc/pm8941-pwrkey.c | 1 - drivers/input/misc/rk805-pwrkey.c | 2 -- drivers/input/misc/stpmic1_onkey.c | 4 ---- drivers/input/misc/tps65218-pwrbutton.c | 1 - drivers/input/misc/twl6040-vibra.c | 1 - drivers/input/mouse/pxa930_trkball.c | 1 - drivers/input/serio/arc_ps2.c | 1 - drivers/input/serio/ps2-gpio.c | 2 -- drivers/input/touchscreen/88pm860x-ts.c | 1 - drivers/input/touchscreen/bcm_iproc_tsc.c | 1 - drivers/input/touchscreen/fsl-imx25-tcq.c | 1 - drivers/input/touchscreen/imx6ul_tsc.c | 2 -- drivers/input/touchscreen/lpc32xx_ts.c | 1 - drivers/iommu/exynos-iommu.c | 1 - drivers/iommu/msm_iommu.c | 1 - drivers/iommu/qcom_iommu.c | 1 - drivers/irqchip/irq-imgpdc.c | 2 -- drivers/irqchip/irq-keystone.c | 1 - drivers/irqchip/qcom-irq-combiner.c | 1 - drivers/mailbox/armada-37xx-rwtm-mailbox.c | 1 - drivers/mailbox/platform_mhu.c | 1 - drivers/mailbox/stm32-ipcc.c | 5 ----- drivers/mailbox/zynqmp-ipi-mailbox.c | 1 - drivers/media/platform/am437x/am437x-vpfe.c | 1 - .../media/platform/atmel/atmel-sama5d2-isc.c | 1 - drivers/media/platform/exynos4-is/mipi-csis.c | 1 - drivers/media/platform/imx-pxp.c | 1 - drivers/media/platform/omap3isp/isp.c | 1 - drivers/media/platform/renesas-ceu.c | 1 - drivers/media/platform/rockchip/rga/rga.c | 1 - drivers/media/platform/s3c-camif/camif-core.c | 1 - .../platform/sti/c8sectpfe/c8sectpfe-core.c | 2 -- drivers/media/platform/sti/hva/hva-hw.c | 2 -- drivers/media/platform/stm32/stm32-dcmi.c | 2 -- .../platform/sunxi/sun6i-csi/sun6i_csi.c | 1 - drivers/media/rc/img-ir/img-ir-core.c | 1 - drivers/media/rc/ir-hix5hd2.c | 1 - drivers/media/rc/meson-ir.c | 1 - drivers/media/rc/mtk-cir.c | 1 - drivers/media/rc/sunxi-cir.c | 1 - drivers/memory/emif.c | 2 -- drivers/memory/tegra/mc.c | 1 - drivers/mfd/ab8500-debugfs.c | 2 -- drivers/mfd/db8500-prcmu.c | 1 - drivers/mfd/fsl-imx25-tsadc.c | 1 - drivers/mfd/intel_soc_pmic_bxtwc.c | 1 - drivers/mfd/jz4740-adc.c | 2 -- drivers/mfd/qcom_rpm.c | 3 --- drivers/mfd/sm501.c | 1 - drivers/misc/spear13xx_pcie_gadget.c | 1 - drivers/mmc/host/bcm2835.c | 1 - drivers/mmc/host/jz4740_mmc.c | 1 - drivers/mmc/host/meson-gx-mmc.c | 1 - drivers/mmc/host/mxcmmc.c | 1 - drivers/mmc/host/s3cmci.c | 1 - drivers/mmc/host/sdhci-msm.c | 2 -- drivers/mmc/host/sdhci-pltfm.c | 1 - drivers/mmc/host/sdhci-s3c.c | 1 - drivers/mmc/host/sdhci_f_sdh30.c | 1 - drivers/mmc/host/uniphier-sd.c | 1 - drivers/mtd/devices/spear_smi.c | 1 - drivers/mtd/nand/raw/denali_dt.c | 1 - drivers/mtd/nand/raw/hisi504_nand.c | 1 - drivers/mtd/nand/raw/lpc32xx_mlc.c | 1 - drivers/mtd/nand/raw/marvell_nand.c | 1 - drivers/mtd/nand/raw/meson_nand.c | 1 - drivers/mtd/nand/raw/mtk_ecc.c | 1 - drivers/mtd/nand/raw/mtk_nand.c | 1 - drivers/mtd/nand/raw/omap2.c | 2 -- drivers/mtd/nand/raw/sh_flctl.c | 1 - drivers/mtd/nand/raw/stm32_fmc2_nand.c | 2 -- drivers/mtd/nand/raw/sunxi_nand.c | 1 - drivers/mtd/spi-nor/cadence-quadspi.c | 1 - drivers/net/can/janz-ican3.c | 1 - drivers/net/can/rcar/rcar_can.c | 1 - drivers/net/can/rcar/rcar_canfd.c | 2 -- drivers/net/can/sun4i_can.c | 1 - drivers/net/ethernet/amd/au1000_eth.c | 1 - drivers/net/ethernet/amd/xgbe/xgbe-platform.c | 2 -- drivers/net/ethernet/apm/xgene-v2/main.c | 1 - .../net/ethernet/apm/xgene/xgene_enet_main.c | 1 - drivers/net/ethernet/aurora/nb8800.c | 1 - .../net/ethernet/broadcom/bgmac-platform.c | 1 - drivers/net/ethernet/cortina/gemini.c | 1 - drivers/net/ethernet/davicom/dm9000.c | 2 -- drivers/net/ethernet/hisilicon/hisi_femac.c | 1 - drivers/net/ethernet/lantiq_xrx200.c | 4 ---- drivers/net/ethernet/nuvoton/w90p910_ether.c | 2 -- drivers/net/ethernet/qualcomm/emac/emac.c | 2 -- drivers/net/ethernet/socionext/sni_ave.c | 1 - .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 4 ---- .../ethernet/stmicro/stmmac/stmmac_platform.c | 4 ---- .../net/wireless/mediatek/mt76/mt7603/soc.c | 1 - drivers/pci/controller/dwc/pci-dra7xx.c | 2 -- drivers/pci/controller/dwc/pci-exynos.c | 2 -- drivers/pci/controller/dwc/pci-imx6.c | 1 - drivers/pci/controller/dwc/pci-keystone.c | 1 - drivers/pci/controller/dwc/pci-meson.c | 1 - drivers/pci/controller/dwc/pcie-armada8k.c | 1 - drivers/pci/controller/dwc/pcie-artpec6.c | 1 - drivers/pci/controller/dwc/pcie-histb.c | 1 - drivers/pci/controller/dwc/pcie-kirin.c | 2 -- drivers/pci/controller/dwc/pcie-spear13xx.c | 1 - drivers/pci/controller/pci-tegra.c | 2 -- drivers/pci/controller/pci-v3-semi.c | 1 - drivers/pci/controller/pci-xgene-msi.c | 2 -- drivers/pci/controller/pcie-altera-msi.c | 1 - drivers/pci/controller/pcie-altera.c | 1 - drivers/pci/controller/pcie-mobiveil.c | 1 - drivers/pci/controller/pcie-rockchip-host.c | 3 --- drivers/pci/controller/pcie-tango.c | 1 - drivers/pci/controller/pcie-xilinx-nwl.c | 5 ----- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 1 - drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 1 - drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 1 - drivers/perf/qcom_l2_pmu.c | 3 --- drivers/perf/xgene_pmu.c | 1 - drivers/pinctrl/intel/pinctrl-cherryview.c | 1 - drivers/pinctrl/intel/pinctrl-intel.c | 1 - drivers/pinctrl/pinctrl-amd.c | 1 - drivers/pinctrl/pinctrl-oxnas.c | 1 - drivers/pinctrl/pinctrl-pic32.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/qcom/pinctrl-msm.c | 1 - drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c | 2 -- drivers/platform/mellanox/mlxreg-hotplug.c | 2 -- drivers/platform/x86/intel_bxtwc_tmu.c | 1 - drivers/platform/x86/intel_int0002_vgpio.c | 1 - drivers/platform/x86/intel_pmc_ipc.c | 1 - drivers/power/supply/88pm860x_battery.c | 2 -- drivers/power/supply/axp288_charger.c | 1 - drivers/power/supply/bd70528-charger.c | 2 -- drivers/power/supply/da9150-charger.c | 2 -- drivers/power/supply/da9150-fg.c | 1 - drivers/power/supply/goldfish_battery.c | 1 - drivers/power/supply/jz4740-battery.c | 1 - drivers/power/supply/qcom_smbb.c | 2 -- drivers/power/supply/sc27xx_fuel_gauge.c | 1 - drivers/pwm/pwm-sti.c | 1 - drivers/regulator/da9062-regulator.c | 1 - drivers/regulator/da9063-regulator.c | 1 - drivers/remoteproc/da8xx_remoteproc.c | 1 - drivers/remoteproc/keystone_remoteproc.c | 4 ---- drivers/remoteproc/qcom_q6v5.c | 20 ------------------- drivers/rtc/rtc-88pm80x.c | 1 - drivers/rtc/rtc-88pm860x.c | 1 - drivers/rtc/rtc-ac100.c | 1 - drivers/rtc/rtc-armada38x.c | 1 - drivers/rtc/rtc-asm9260.c | 1 - drivers/rtc/rtc-at91rm9200.c | 1 - drivers/rtc/rtc-at91sam9.c | 1 - drivers/rtc/rtc-bd70528.c | 1 - drivers/rtc/rtc-davinci.c | 1 - drivers/rtc/rtc-jz4740.c | 1 - drivers/rtc/rtc-max77686.c | 2 -- drivers/rtc/rtc-mt7622.c | 1 - drivers/rtc/rtc-pic32.c | 1 - drivers/rtc/rtc-pm8xxx.c | 1 - drivers/rtc/rtc-puv3.c | 2 -- drivers/rtc/rtc-pxa.c | 2 -- drivers/rtc/rtc-rk808.c | 3 --- drivers/rtc/rtc-s3c.c | 2 -- drivers/rtc/rtc-sc27xx.c | 1 - drivers/rtc/rtc-spear.c | 1 - drivers/rtc/rtc-stm32.c | 1 - drivers/rtc/rtc-sun6i.c | 1 - drivers/rtc/rtc-sunxi.c | 1 - drivers/rtc/rtc-tegra.c | 1 - drivers/rtc/rtc-vt8500.c | 1 - drivers/rtc/rtc-xgene.c | 1 - drivers/rtc/rtc-zynqmp.c | 2 -- drivers/scsi/ufs/ufshcd-pltfrm.c | 1 - drivers/soc/fsl/qbman/bman_portal.c | 1 - drivers/soc/fsl/qbman/qman_portal.c | 1 - drivers/soc/qcom/smp2p.c | 1 - drivers/spi/atmel-quadspi.c | 1 - drivers/spi/spi-armada-3700.c | 1 - drivers/spi/spi-bcm2835.c | 1 - drivers/spi/spi-bcm2835aux.c | 1 - drivers/spi/spi-bcm63xx-hsspi.c | 1 - drivers/spi/spi-bcm63xx.c | 1 - drivers/spi/spi-cadence.c | 1 - drivers/spi/spi-dw-mmio.c | 1 - drivers/spi/spi-efm32.c | 1 - drivers/spi/spi-ep93xx.c | 1 - drivers/spi/spi-fsl-dspi.c | 1 - drivers/spi/spi-fsl-qspi.c | 1 - drivers/spi/spi-geni-qcom.c | 1 - drivers/spi/spi-lantiq-ssc.c | 3 --- drivers/spi/spi-mt65xx.c | 1 - drivers/spi/spi-npcm-pspi.c | 1 - drivers/spi/spi-nuc900.c | 1 - drivers/spi/spi-nxp-fspi.c | 1 - drivers/spi/spi-pic32-sqi.c | 1 - drivers/spi/spi-pic32.c | 3 --- drivers/spi/spi-qcom-qspi.c | 1 - drivers/spi/spi-s3c24xx.c | 1 - drivers/spi/spi-sh-msiof.c | 1 - drivers/spi/spi-sh.c | 1 - drivers/spi/spi-sifive.c | 1 - drivers/spi/spi-slave-mt27xx.c | 1 - drivers/spi/spi-sprd.c | 1 - drivers/spi/spi-stm32-qspi.c | 2 -- drivers/spi/spi-sun4i.c | 1 - drivers/spi/spi-sun6i.c | 1 - drivers/spi/spi-synquacer.c | 2 -- drivers/spi/spi-ti-qspi.c | 1 - drivers/spi/spi-uniphier.c | 1 - drivers/spi/spi-xlp.c | 1 - drivers/spi/spi-zynq-qspi.c | 1 - drivers/spi/spi-zynqmp-gqspi.c | 1 - drivers/staging/emxx_udc/emxx_udc.c | 1 - drivers/staging/goldfish/goldfish_audio.c | 1 - .../staging/media/allegro-dvt/allegro-core.c | 1 - drivers/staging/media/hantro/hantro_drv.c | 1 - drivers/staging/media/imx/imx7-media-csi.c | 1 - drivers/staging/media/imx/imx7-mipi-csis.c | 1 - drivers/staging/media/meson/vdec/esparser.c | 1 - drivers/staging/media/omap4iss/iss.c | 1 - .../staging/media/sunxi/cedrus/cedrus_hw.c | 2 -- drivers/staging/most/dim2/dim2.c | 2 -- drivers/staging/mt7621-dma/mtk-hsdma.c | 1 - drivers/staging/nvec/nvec.c | 1 - drivers/staging/ralink-gdma/ralink-gdma.c | 1 - .../interface/vchiq_arm/vchiq_2835_arm.c | 1 - drivers/thermal/broadcom/brcmstb_thermal.c | 1 - drivers/thermal/da9062-thermal.c | 1 - drivers/thermal/db8500_thermal.c | 2 -- drivers/thermal/rockchip_thermal.c | 1 - drivers/thermal/st/st_thermal_memmap.c | 1 - drivers/thermal/st/stm_thermal.c | 1 - drivers/thermal/ti-soc-thermal/ti-bandgap.c | 1 - drivers/tty/serial/8250/8250_bcm2835aux.c | 1 - drivers/tty/serial/8250/8250_lpc18xx.c | 1 - drivers/tty/serial/8250/8250_uniphier.c | 1 - drivers/tty/serial/amba-pl011.c | 2 -- drivers/tty/serial/fsl_lpuart.c | 1 - drivers/tty/serial/lpc32xx_hs.c | 2 -- drivers/tty/serial/mvebu-uart.c | 3 --- drivers/tty/serial/owl-uart.c | 1 - drivers/tty/serial/qcom_geni_serial.c | 1 - drivers/tty/serial/rda-uart.c | 1 - drivers/tty/serial/sccnxp.c | 1 - drivers/tty/serial/serial-tegra.c | 1 - drivers/tty/serial/sifive.c | 1 - drivers/tty/serial/sprd_serial.c | 1 - drivers/tty/serial/stm32-usart.c | 2 -- drivers/uio/uio_dmem_genirq.c | 1 - drivers/usb/chipidea/core.c | 1 - drivers/usb/dwc2/platform.c | 1 - drivers/usb/dwc3/dwc3-keystone.c | 1 - drivers/usb/dwc3/dwc3-omap.c | 1 - drivers/usb/gadget/udc/aspeed-vhub/core.c | 1 - drivers/usb/gadget/udc/bcm63xx_udc.c | 2 -- drivers/usb/gadget/udc/bdc/bdc_core.c | 1 - drivers/usb/gadget/udc/gr_udc.c | 2 -- drivers/usb/gadget/udc/lpc32xx_udc.c | 2 -- drivers/usb/gadget/udc/renesas_usb3.c | 1 - drivers/usb/gadget/udc/s3c-hsudc.c | 1 - drivers/usb/gadget/udc/udc-xilinx.c | 1 - drivers/usb/host/ehci-atmel.c | 3 --- drivers/usb/host/ehci-omap.c | 1 - drivers/usb/host/ehci-orion.c | 3 --- drivers/usb/host/ehci-platform.c | 1 - drivers/usb/host/ehci-sh.c | 3 --- drivers/usb/host/ehci-st.c | 1 - drivers/usb/host/imx21-hcd.c | 1 - drivers/usb/host/ohci-platform.c | 1 - drivers/usb/host/ohci-st.c | 1 - drivers/usb/mtu3/mtu3_core.c | 1 - drivers/usb/phy/phy-ab8500-usb.c | 3 --- drivers/usb/typec/tcpm/wcove.c | 1 - drivers/video/fbdev/atmel_lcdfb.c | 1 - drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 1 - drivers/video/fbdev/nuc900fb.c | 1 - drivers/video/fbdev/pxa168fb.c | 1 - drivers/video/fbdev/pxa3xx-gcu.c | 1 - drivers/video/fbdev/pxafb.c | 1 - drivers/video/fbdev/s3c2410fb.c | 1 - drivers/video/fbdev/vt8500lcdfb.c | 1 - drivers/watchdog/sprd_wdt.c | 1 - sound/soc/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - sound/soc/bcm/cygnus-ssp.c | 1 - sound/soc/codecs/msm8916-wcd-analog.c | 3 --- sound/soc/codecs/twl6040.c | 1 - sound/soc/fsl/fsl_asrc.c | 1 - sound/soc/fsl/fsl_esai.c | 1 - sound/soc/fsl/fsl_sai.c | 1 - sound/soc/fsl/fsl_spdif.c | 1 - sound/soc/fsl/fsl_ssi.c | 1 - sound/soc/fsl/imx-ssi.c | 1 - sound/soc/kirkwood/kirkwood-i2s.c | 1 - sound/soc/mediatek/common/mtk-btcvsd.c | 1 - sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1 - sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 1 - sound/soc/mxs/mxs-saif.c | 2 -- sound/soc/qcom/lpass-platform.c | 2 -- sound/soc/sof/intel/bdw.c | 2 -- sound/soc/sof/intel/byt.c | 2 -- sound/soc/sprd/sprd-mcdt.c | 1 - sound/soc/sti/sti_uniperif.c | 1 - sound/soc/stm/stm32_i2s.c | 2 -- sound/soc/stm/stm32_sai.c | 1 - sound/soc/stm/stm32_spdifrx.c | 1 - sound/soc/sunxi/sun4i-i2s.c | 1 - sound/soc/uniphier/aio-dma.c | 1 - sound/soc/xilinx/xlnx_formatter_pcm.c | 2 -- sound/soc/xtensa/xtfpga-i2s.c | 1 - sound/x86/intel_hdmi_audio.c | 1 - 462 files changed, 615 deletions(-)
arch/arm/plat-omap/dma.c +0 -1
@@ -1371,7 +1371,6 @@ static int omap_system_dma_probe(struct platform_device *pdev)strcpy (irq_name,"0" ); dma_irq =platform_get_irq_byname (pdev, irq_name);if (dma_irq <0 ) { -dev_err (&pdev->dev,"failed: request IRQ %d" , dma_irq); ret = dma_irq; goto exit_dma_lch_fail; }
arch/arm/plat-pxa/ssp.c +0 -1
@@ -147,7 +147,6 @@ static int pxa_ssp_probe(struct platform_device *pdev) ssp->irq =platform_get_irq (pdev,0 );if (ssp->irq <0 ) { -dev_err (dev,"no IRQ resource defined\n" );return -ENODEV ; }
arch/arm/plat-samsung/adc.c +0 -1
@@ -355,7 +355,6 @@ static int s3c_adc_probe(struct platform_device *pdev) adc->irq =platform_get_irq (pdev,1 );if (adc->irq <=0 ) { -dev_err (dev,"failed to get adc irq\n" );return -ENOENT ; }
arch/mips/ralink/timer.c +0 -1
@@ -107,7 +107,6 @@ static int rt_timer_probe(struct platform_device *pdev) rt->irq =platform_get_irq (pdev,0 );if (rt->irq <0 ) { -dev_err (&pdev->dev,"failed to load irq\n" );return rt->irq; }
drivers/ata/libahci_platform.c +0 -2
@@ -584,8 +584,6 @@ int ahci_platform_init_host(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -if (irq != -EPROBE_DEFER ) -dev_err (dev,"no irq\n" );return irq; }
drivers/ata/pata_rb532_cf.c +0 -1
@@ -116,7 +116,6 @@ static int rb532_pata_driver_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"no IRQ resource found\n" );return -ENOENT ; }
drivers/ata/sata_highbank.c +0 -1
@@ -470,7 +470,6 @@ static int ahci_highbank_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"no irq\n" );return -EINVAL ; }
drivers/bus/sunxi-rsb.c +0 -1
@@ -652,7 +652,6 @@ static int sunxi_rsb_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to retrieve irq: %d\n" , irq);return irq; }
drivers/char/hw_random/imx-rngc.c +0 -1
@@ -217,7 +217,6 @@ static int imx_rngc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"Couldn't get irq %d\n" , irq);return irq; }
drivers/char/hw_random/omap-rng.c +0 -2
@@ -386,8 +386,6 @@ static int of_get_omap_rng_device_details(struct omap_rng_dev *priv, of_device_is_compatible(dev->of_node, "inside-secure,safexcel-eip76")) { irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"%s: error getting IRQ resource - %d\n" , - __func__, irq);return irq; }
drivers/char/hw_random/xgene-rng.c +0 -1
@@ -331,7 +331,6 @@ static int xgene_rng_probe(struct platform_device *pdev) rc =platform_get_irq (pdev,0 );if (rc <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return rc; } ctx->irq = rc;
drivers/clocksource/em_sti.c +0 -1
@@ -292,7 +292,6 @@ static int em_sti_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq\n" );return irq; }
drivers/clocksource/sh_cmt.c +0 -2
@@ -777,8 +777,6 @@ static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch, irq =platform_get_irq (ch->cmt->pdev, ch->index);if (irq <0 ) { -dev_err (&ch->cmt->pdev->dev,"ch%u: failed to get irq\n" , - ch->index);return irq; }
drivers/clocksource/sh_tmu.c +0 -2
@@ -463,8 +463,6 @@ static int sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, ch->irq =platform_get_irq (tmu->pdev, index);if (ch->irq <0 ) { -dev_err (&tmu->pdev->dev,"ch%u: failed to get irq\n" , - ch->index);return ch->irq; }
drivers/cpufreq/brcmstb-avs-cpufreq.c +0 -2
@@ -538,8 +538,6 @@ static int brcm_avs_prepare_init(struct platform_device *pdev) host_irq =platform_get_irq_byname (pdev,BRCM_AVS_HOST_INTR );if (host_irq <0 ) { -dev_err (dev,"Couldn't find interrupt %s -- %d\n" , -BRCM_AVS_HOST_INTR , host_irq); ret = host_irq; goto unmap_intr_base; }
drivers/crypto/atmel-aes.c +0 -1
@@ -2673,7 +2673,6 @@ static int atmel_aes_probe(struct platform_device *pdev)/* Get the IRQ */ aes_dd->irq =platform_get_irq (pdev,0 );if (aes_dd->irq <0 ) { -dev_err (dev,"no IRQ resource info\n" ); err = aes_dd->irq; goto res_err; }
drivers/crypto/atmel-sha.c +0 -1
@@ -2779,7 +2779,6 @@ static int atmel_sha_probe(struct platform_device *pdev)/* Get the IRQ */ sha_dd->irq =platform_get_irq (pdev,0 );if (sha_dd->irq <0 ) { -dev_err (dev,"no IRQ resource info\n" ); err = sha_dd->irq; goto res_err; }
drivers/crypto/atmel-tdes.c +0 -1
@@ -1281,7 +1281,6 @@ static int atmel_tdes_probe(struct platform_device *pdev)/* Get the IRQ */ tdes_dd->irq =platform_get_irq (pdev,0 );if (tdes_dd->irq <0 ) { -dev_err (dev,"no IRQ resource info\n" ); err = tdes_dd->irq; goto res_err; }
drivers/crypto/ccree/cc_driver.c +0 -1
@@ -340,7 +340,6 @@ static int init_cc_resources(struct platform_device *plat_dev)/* Then IRQ */ new_drvdata->irq =platform_get_irq (plat_dev,0 );if (new_drvdata->irq <0 ) { -dev_err (dev,"Failed getting IRQ resource\n" );return new_drvdata->irq; }
drivers/crypto/img-hash.c +0 -1
@@ -980,7 +980,6 @@ static int img_hash_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no IRQ resource info\n" ); err = irq; goto res_err; }
drivers/crypto/mediatek/mtk-platform.c +0 -1
@@ -496,7 +496,6 @@ static int mtk_crypto_probe(struct platform_device *pdev)for (i =0 ; i <MTK_IRQ_NUM ; i++) { cryp->irq[i] =platform_get_irq (pdev, i);if (cryp->irq[i] <0 ) { -dev_err (cryp->dev,"no IRQ:%d resource info\n" , i);return cryp->irq[i]; } }
drivers/crypto/mxs-dcp.c +0 -2
@@ -995,13 +995,11 @@ static int mxs_dcp_probe(struct platform_device *pdev) dcp_vmi_irq =platform_get_irq (pdev,0 );if (dcp_vmi_irq <0 ) { -dev_err (dev,"Failed to get IRQ: (%d)!\n" , dcp_vmi_irq);return dcp_vmi_irq; } dcp_irq =platform_get_irq (pdev,1 );if (dcp_irq <0 ) { -dev_err (dev,"Failed to get IRQ: (%d)!\n" , dcp_irq);return dcp_irq; }
drivers/crypto/omap-aes.c +0 -1
@@ -1180,7 +1180,6 @@ static int omap_aes_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"can't get IRQ resource\n" ); err = irq; goto err_irq; }
drivers/crypto/omap-des.c +0 -1
@@ -1049,7 +1049,6 @@ static int omap_des_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"can't get IRQ resource: %d\n" , irq); err = irq; goto err_irq; }
drivers/crypto/omap-sham.c +0 -1
@@ -1989,7 +1989,6 @@ static int omap_sham_get_res_pdev(struct omap_sham_dev *dd,/* Get the IRQ */ dd->irq =platform_get_irq (pdev,0 );if (dd->irq <0 ) { -dev_err (dev,"no IRQ resource info\n" ); err = dd->irq; goto err; }
drivers/crypto/sahara.c +0 -1
@@ -1404,7 +1404,6 @@ static int sahara_probe(struct platform_device *pdev)/* Get the IRQ */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq resource\n" );return irq; }
drivers/crypto/stm32/stm32-cryp.c +0 -1
@@ -1976,7 +1976,6 @@ static int stm32_cryp_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Cannot get IRQ resource\n" );return irq; }
drivers/crypto/stm32/stm32-hash.c +0 -1
@@ -1451,7 +1451,6 @@ static int stm32_hash_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Cannot get IRQ resource\n" );return irq; }
drivers/devfreq/tegra-devfreq.c +0 -1
@@ -675,7 +675,6 @@ static int tegra_devfreq_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get IRQ: %d\n" , irq);return irq; }
drivers/dma/dma-jz4780.c +0 -1
@@ -879,7 +879,6 @@ static int jz4780_dma_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"failed to get IRQ: %d\n" , ret);return ret; }
drivers/dma/fsl-edma.c +0 -2
@@ -126,13 +126,11 @@ fsl_edma_irq_init(struct platform_device *pdev, struct fsl_edma_engine *fsl_edma fsl_edma->txirq =platform_get_irq_byname (pdev,"edma-tx" );if (fsl_edma->txirq <0 ) { -dev_err (&pdev->dev,"Can't get edma-tx irq.\n" );return fsl_edma->txirq; } fsl_edma->errirq =platform_get_irq_byname (pdev,"edma-err" );if (fsl_edma->errirq <0 ) { -dev_err (&pdev->dev,"Can't get edma-err irq.\n" );return fsl_edma->errirq; }
drivers/dma/fsl-qdma.c +0 -3
@@ -759,7 +759,6 @@ fsl_qdma_irq_init(struct platform_device *pdev, fsl_qdma->error_irq =platform_get_irq_byname (pdev,"qdma-error" );if (fsl_qdma->error_irq <0 ) { -dev_err (&pdev->dev,"Can't get qdma controller irq.\n" );return fsl_qdma->error_irq; }
@@ -777,8 +776,6 @@ fsl_qdma_irq_init(struct platform_device *pdev,platform_get_irq_byname (pdev, irq_name);if (fsl_qdma->queue_irq[i] <0 ) { -dev_err (&pdev->dev, -"Can't get qdma queue %d irq.\n" , i);return fsl_qdma->queue_irq[i]; }
drivers/dma/mediatek/mtk-uart-apdma.c +0 -1
@@ -548,7 +548,6 @@ static int mtk_uart_apdma_probe(struct platform_device *pdev) rc =platform_get_irq (pdev, i);if (rc <0 ) { -dev_err (&pdev->dev,"failed to get IRQ[%d]\n" , i); goto err_no_dma; } c->irq = rc;
drivers/dma/qcom/hidma_mgmt.c +0 -1
@@ -183,7 +183,6 @@ static int hidma_mgmt_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"irq resources not found\n" ); rc = irq; goto out; }
drivers/dma/s3c24xx-dma.c +0 -2
@@ -1238,8 +1238,6 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) phy->irq =platform_get_irq (pdev, i);if (phy->irq <0 ) { -dev_err (&pdev->dev,"failed to get irq %d, err %d\n" , - i, phy->irq);continue ; }
drivers/dma/sh/rcar-dmac.c +0 -1
@@ -1745,7 +1745,6 @@ static int rcar_dmac_chan_probe(struct rcar_dmac *dmac,sprintf (pdev_irqname,"ch%u" , index); rchan->irq =platform_get_irq_byname (pdev, pdev_irqname);if (rchan->irq <0 ) { -dev_err (dmac->dev,"no IRQ specified for channel %u\n" , index);return -ENODEV ; }
drivers/dma/sh/usb-dmac.c +0 -1
@@ -718,7 +718,6 @@ static int usb_dmac_chan_probe(struct usb_dmac *dmac,sprintf (pdev_irqname,"ch%u" , index); uchan->irq =platform_get_irq_byname (pdev, pdev_irqname);if (uchan->irq <0 ) { -dev_err (dmac->dev,"no IRQ specified for channel %u\n" , index);return -ENODEV ; }
drivers/dma/st_fdma.c +0 -1
@@ -772,7 +772,6 @@ static int st_fdma_probe(struct platform_device *pdev) fdev->irq =platform_get_irq (pdev,0 );if (fdev->irq <0 ) { -dev_err (&pdev->dev,"Failed to get irq resource\n" );return -EINVAL ; }
drivers/dma/stm32-dma.c +0 -3
@@ -1367,9 +1367,6 @@ static int stm32_dma_probe(struct platform_device *pdev) chan = &dmadev->chan[i]; ret =platform_get_irq (pdev, i);if (ret <0 ) { -if (ret != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"No irq resource for chan %d\n" , i); goto err_unregister; } chan->irq = ret;
drivers/dma/stm32-mdma.c +0 -1
@@ -1639,7 +1639,6 @@ static int stm32_mdma_probe(struct platform_device *pdev) dmadev->irq =platform_get_irq (pdev,0 );if (dmadev->irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" );return dmadev->irq; }
drivers/dma/sun4i-dma.c +0 -1
@@ -1133,7 +1133,6 @@ static int sun4i_dma_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <0 ) { -dev_err (&pdev->dev,"Cannot claim IRQ\n" );return priv->irq; }
drivers/dma/sun6i-dma.c +0 -1
@@ -1252,7 +1252,6 @@ static int sun6i_dma_probe(struct platform_device *pdev) sdc->irq =platform_get_irq (pdev,0 );if (sdc->irq <0 ) { -dev_err (&pdev->dev,"Cannot claim IRQ\n" );return sdc->irq; }
drivers/dma/uniphier-mdmac.c +0 -2
@@ -355,8 +355,6 @@ static int uniphier_mdmac_chan_init(struct platform_device *pdev, irq =platform_get_irq (pdev, chan_id);if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ number for ch%d\n" , - chan_id);return irq; }
drivers/dma/xgene-dma.c +0 -2
@@ -1679,7 +1679,6 @@ static int xgene_dma_get_resources(struct platform_device *pdev,/* Get DMA error interrupt */ irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"Failed to get Error IRQ\n" );return -ENXIO ; }
@@ -1689,7 +1688,6 @@ static int xgene_dma_get_resources(struct platform_device *pdev,for (i =1 ; i <=XGENE_DMA_MAX_CHANNEL ; i++) { irq =platform_get_irq (pdev, i);if (irq <=0 ) { -dev_err (&pdev->dev,"Failed to get Rx IRQ\n" );return -ENXIO ; }
drivers/edac/altera_edac.c +0 -2
@@ -2178,7 +2178,6 @@ static int altr_edac_a10_probe(struct platform_device *pdev) edac->sb_irq =platform_get_irq (pdev,0 );if (edac->sb_irq <0 ) { -dev_err (&pdev->dev,"No SBERR IRQ resource\n" );return edac->sb_irq; }
@@ -2213,7 +2212,6 @@ static int altr_edac_a10_probe(struct platform_device *pdev)#else edac->db_irq =platform_get_irq (pdev,1 );if (edac->db_irq <0 ) { -dev_err (&pdev->dev,"No DBERR IRQ resource\n" );return edac->db_irq; } irq_set_chained_handler_and_data(edac->db_irq,
drivers/edac/xgene_edac.c +0 -1
@@ -1921,7 +1921,6 @@ static int xgene_edac_probe(struct platform_device *pdev)for (i =0 ; i <3 ; i++) { irq =platform_get_irq (pdev, i);if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" ); rc = -EINVAL ; goto out_err; }
drivers/extcon/extcon-adc-jack.c +0 -1
@@ -141,7 +141,6 @@ static int adc_jack_probe(struct platform_device *pdev) data->irq =platform_get_irq (pdev,0 );if (data->irq <0 ) { -dev_err (&pdev->dev,"platform_get_irq failed\n" );return -ENODEV ; }
drivers/firmware/tegra/bpmp-tegra210.c +0 -2
@@ -203,7 +203,6 @@ static int tegra210_bpmp_init(struct tegra_bpmp *bpmp) err =platform_get_irq_byname (pdev,"tx" );if (err <0 ) { -dev_err (&pdev->dev,"failed to get TX IRQ: %d\n" , err);return err; }
@@ -215,7 +214,6 @@ static int tegra210_bpmp_init(struct tegra_bpmp *bpmp) err =platform_get_irq_byname (pdev,"rx" );if (err <0 ) { -dev_err (&pdev->dev,"failed to get rx IRQ: %d\n" , err);return err; }
drivers/fpga/zynq-fpga.c +0 -1
@@ -579,7 +579,6 @@ static int zynq_fpga_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <0 ) { -dev_err (dev,"No IRQ available\n" );return priv->irq; }
drivers/gpio/gpio-brcmstb.c +0 -1
@@ -637,7 +637,6 @@ static int brcmstb_gpio_probe(struct platform_device *pdev)if (of_property_read_bool (np,"interrupt-controller" )) { priv->parent_irq =platform_get_irq (pdev,0 );if (priv->parent_irq <=0 ) { -dev_err (dev,"Couldn't get IRQ" );return -ENOENT ; } }else {
drivers/gpio/gpio-eic-sprd.c +0 -1
@@ -585,7 +585,6 @@ static int sprd_eic_probe(struct platform_device *pdev) sprd_eic->irq =platform_get_irq (pdev,0 );if (sprd_eic->irq <0 ) { -dev_err (&pdev->dev,"Failed to get EIC interrupt.\n" );return sprd_eic->irq; }
drivers/gpio/gpio-grgpio.c +0 -2
@@ -408,8 +408,6 @@ static int grgpio_probe(struct platform_device *ofdev)* Continue without irq functionality for that * gpio line */ -dev_err (priv->dev, -"Failed to get irq for offset %d\n" , i);continue ; } priv->uirqs[lirq->index].uirq = ret;
drivers/gpio/gpio-max77620.c +0 -1
@@ -271,7 +271,6 @@ static int max77620_gpio_probe(struct platform_device *pdev) gpio_irq =platform_get_irq (pdev,0 );if (gpio_irq <=0 ) { -dev_err (&pdev->dev,"GPIO irq not available %d\n" , gpio_irq);return -ENODEV ; }
drivers/gpio/gpio-pmic-eic-sprd.c +0 -1
@@ -306,7 +306,6 @@ static int sprd_pmic_eic_probe(struct platform_device *pdev) pmic_eic->irq =platform_get_irq (pdev,0 );if (pmic_eic->irq <0 ) { -dev_err (&pdev->dev,"Failed to get PMIC EIC interrupt.\n" );return pmic_eic->irq; }
drivers/gpio/gpio-sprd.c +0 -1
@@ -227,7 +227,6 @@ static int sprd_gpio_probe(struct platform_device *pdev) sprd_gpio->irq =platform_get_irq (pdev,0 );if (sprd_gpio->irq <0 ) { -dev_err (&pdev->dev,"Failed to get GPIO interrupt.\n" );return sprd_gpio->irq; }
drivers/gpio/gpio-tb10x.c +0 -1
@@ -172,7 +172,6 @@ static int tb10x_gpio_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"No interrupt specified.\n" );return ret; }
drivers/gpio/gpio-tegra.c +0 -1
@@ -625,7 +625,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)for (i =0 ; i < tgi->bank_count; i++) { ret =platform_get_irq (pdev, i);if (ret <0 ) { -dev_err (&pdev->dev,"Missing IRQ resource: %d\n" , ret);return ret; }
drivers/gpio/gpio-zx.c +0 -1
@@ -253,7 +253,6 @@ static int zx_gpio_probe(struct platform_device *pdev)writew_relaxed (0 , chip->base +ZX_GPIO_IE ); irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"invalid IRQ\n" );gpiochip_remove (&chip->gc);return -ENODEV ; }
drivers/gpio/gpio-zynq.c +0 -1
@@ -850,7 +850,6 @@ static int zynq_gpio_probe(struct platform_device *pdev) gpio->irq =platform_get_irq (pdev,0 );if (gpio->irq <0 ) { -dev_err (&pdev->dev,"invalid IRQ\n" );return gpio->irq; }
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +0 -1
@@ -1734,7 +1734,6 @@ static int etnaviv_gpu_platform_probe(struct platform_device *pdev)/* Get Interrupt: */ gpu->irq =platform_get_irq (pdev,0 );if (gpu->irq <0 ) { -dev_err (dev,"failed to get irq: %d\n" , gpu->irq);return gpu->irq; }
drivers/gpu/drm/exynos/exynos_drm_dsi.c +0 -1
@@ -1790,7 +1790,6 @@ static int exynos_dsi_probe(struct platform_device *pdev) dsi->irq =platform_get_irq (pdev,0 );if (dsi->irq <0 ) { -dev_err (dev,"failed to request dsi irq resource\n" );return dsi->irq; }
drivers/gpu/drm/exynos/exynos_drm_g2d.c +0 -1
@@ -1497,7 +1497,6 @@ static int g2d_probe(struct platform_device *pdev) g2d->irq =platform_get_irq (pdev,0 );if (g2d->irq <0 ) { -dev_err (dev,"failed to get irq\n" ); ret = g2d->irq; goto err_put_clk; }
drivers/gpu/drm/exynos/exynos_drm_rotator.c +0 -1
@@ -291,7 +291,6 @@ static int rotator_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get irq\n" );return irq; }
drivers/gpu/drm/exynos/exynos_drm_scaler.c +0 -1
@@ -500,7 +500,6 @@ static int scaler_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get irq\n" );return irq; }
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +0 -1
@@ -270,7 +270,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) fsl_dev->irq =platform_get_irq (pdev,0 );if (fsl_dev->irq <0 ) { -dev_err (dev,"failed to get irq\n" );return fsl_dev->irq; }
drivers/gpu/drm/imx/imx-tve.c +0 -1
@@ -595,7 +595,6 @@ static int imx_tve_bind(struct device *dev, struct device *master, void *data) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get irq\n" );return irq; }
drivers/gpu/drm/ingenic/ingenic-drm.c +0 -1
@@ -631,7 +631,6 @@ static int ingenic_drm_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Failed to get platform irq" );return irq; }
drivers/gpu/drm/mediatek/mtk_cec.c +0 -1
@@ -209,7 +209,6 @@ static int mtk_cec_probe(struct platform_device *pdev) cec->irq =platform_get_irq (pdev,0 );if (cec->irq <0 ) { -dev_err (dev,"Failed to get cec irq: %d\n" , cec->irq);return cec->irq; }
drivers/gpu/drm/mediatek/mtk_dpi.c +0 -1
@@ -718,7 +718,6 @@ static int mtk_dpi_probe(struct platform_device *pdev) dpi->irq =platform_get_irq (pdev,0 );if (dpi->irq <=0 ) { -dev_err (dev,"Failed to get irq: %d\n" , dpi->irq);return -EINVAL ; }
drivers/gpu/drm/mediatek/mtk_dsi.c +0 -1
@@ -1156,7 +1156,6 @@ static int mtk_dsi_probe(struct platform_device *pdev) irq_num =platform_get_irq (pdev,0 );if (irq_num <0 ) { -dev_err (&pdev->dev,"failed to request dsi irq resource\n" );return -EPROBE_DEFER ; }
drivers/gpu/drm/meson/meson_dw_hdmi.c +0 -1
@@ -895,7 +895,6 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Failed to get hdmi top irq\n" );return irq; }
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +0 -1
@@ -823,7 +823,6 @@ static int omap_dmm_probe(struct platform_device *dev) omap_dmm->irq =platform_get_irq (dev,0 );if (omap_dmm->irq <0 ) { -dev_err (&dev->dev,"failed to get IRQ resource\n" ); goto fail; }
drivers/gpu/drm/sun4i/sun4i_tcon.c +0 -1
@@ -784,7 +784,6 @@ static int sun4i_tcon_init_irq(struct device *dev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Couldn't retrieve the TCON interrupt\n" );return irq; }
drivers/gpu/drm/tegra/dc.c +0 -1
@@ -2470,7 +2470,6 @@ static int tegra_dc_probe(struct platform_device *pdev) dc->irq =platform_get_irq (pdev,0 );if (dc->irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" );return -ENXIO ; }
drivers/gpu/drm/tegra/dpaux.c +0 -1
@@ -447,7 +447,6 @@ static int tegra_dpaux_probe(struct platform_device *pdev) dpaux->irq =platform_get_irq (pdev,0 );if (dpaux->irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" );return -ENXIO ; }
drivers/gpu/drm/tegra/sor.c +0 -1
@@ -3324,7 +3324,6 @@ static int tegra_sor_probe(struct platform_device *pdev) err =platform_get_irq (pdev,0 );if (err <0 ) { -dev_err (&pdev->dev,"failed to get IRQ: %d\n" , err); goto remove; }
drivers/gpu/host1x/dev.c +0 -1
@@ -215,7 +215,6 @@ static int host1x_probe(struct platform_device *pdev) syncpt_irq =platform_get_irq (pdev,0 );if (syncpt_irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ: %d\n" , syncpt_irq);return syncpt_irq; }
drivers/hsi/controllers/omap_ssi_core.c +0 -1
@@ -371,7 +371,6 @@ static int ssi_add_controller(struct hsi_controller *ssi, goto out_err; err =platform_get_irq_byname (pd,"gdd_mpu" );if (err <0 ) { -dev_err (&pd->dev,"GDD IRQ resource missing\n" ); goto out_err; } omap_ssi->gdd_irq = err;
drivers/hsi/controllers/omap_ssi_port.c +0 -1
@@ -1039,7 +1039,6 @@ static int ssi_port_irq(struct hsi_port *port, struct platform_device *pd) err =platform_get_irq (pd,0 );if (err <0 ) { -dev_err (&port->device,"Port IRQ resource missing\n" );return err; } omap_port->irq = err;
drivers/hwmon/jz4740-hwmon.c +0 -2
@@ -94,8 +94,6 @@ static int jz4740_hwmon_probe(struct platform_device *pdev) hwmon->irq =platform_get_irq (pdev,0 );if (hwmon->irq <0 ) { -dev_err (&pdev->dev,"Failed to get platform irq: %d\n" , - hwmon->irq);return hwmon->irq; }
drivers/hwmon/npcm750-pwm-fan.c +0 -1
@@ -968,7 +968,6 @@ static int npcm7xx_pwm_fan_probe(struct platform_device *pdev) data->fan_irq[i] =platform_get_irq (pdev, i);if (data->fan_irq[i] <0 ) { -dev_err (dev,"get IRQ fan%d failed\n" , i);return data->fan_irq[i]; }
drivers/i2c/busses/i2c-altera.c +0 -1
@@ -397,7 +397,6 @@ static int altr_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"missing interrupt resource\n" );return irq; }
drivers/i2c/busses/i2c-axxia.c +0 -1
@@ -613,7 +613,6 @@ static int axxia_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"missing interrupt resource\n" );return irq; }
drivers/i2c/busses/i2c-bcm-kona.c +0 -1
@@ -823,7 +823,6 @@ static int bcm_kona_i2c_probe(struct platform_device *pdev)/* Get the interrupt number */ dev->irq =platform_get_irq (pdev,0 );if (dev->irq <0 ) { -dev_err (dev->device,"no irq resource\n" ); rc = -ENODEV ; goto probe_disable_clk; }
drivers/i2c/busses/i2c-cht-wc.c +0 -1
@@ -270,7 +270,6 @@ static int cht_wc_i2c_adap_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Error missing irq resource\n" );return -EINVAL ; }
drivers/i2c/busses/i2c-efm32.c +0 -1
@@ -352,7 +352,6 @@ static int efm32_i2c_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <=0 ) { -dev_err (&pdev->dev,"failed to get irq (%d)\n" , ret);if (!ret) ret = -EINVAL ;return ret;
drivers/i2c/busses/i2c-hix5hd2.c +0 -1
@@ -418,7 +418,6 @@ static int hix5hd2_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"cannot find HS-I2C IRQ\n" );return irq; }
drivers/i2c/busses/i2c-img-scb.c +0 -1
@@ -1345,7 +1345,6 @@ static int img_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"can't get irq number\n" );return irq; }
drivers/i2c/busses/i2c-imx-lpi2c.c +0 -1
@@ -560,7 +560,6 @@ static int lpi2c_imx_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"can't get irq number\n" );return irq; }
drivers/i2c/busses/i2c-imx.c +0 -1
@@ -1063,7 +1063,6 @@ static int i2c_imx_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"can't get irq number\n" );return irq; }
drivers/i2c/busses/i2c-lpc2k.c +0 -1
@@ -363,7 +363,6 @@ static int i2c_lpc2k_probe(struct platform_device *pdev) i2c->irq =platform_get_irq (pdev,0 );if (i2c->irq <0 ) { -dev_err (&pdev->dev,"can't get interrupt resource\n" );return i2c->irq; }
drivers/i2c/busses/i2c-meson.c +0 -1
@@ -396,7 +396,6 @@ static int meson_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"can't find IRQ\n" );return irq; }
drivers/i2c/busses/i2c-omap.c +0 -1
@@ -1367,7 +1367,6 @@ omap_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return irq; }
drivers/i2c/busses/i2c-owl.c +0 -1
@@ -413,7 +413,6 @@ static int owl_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get IRQ number\n" );return irq; }
drivers/i2c/busses/i2c-pnx.c +0 -1
@@ -720,7 +720,6 @@ static int i2c_pnx_probe(struct platform_device *pdev) alg_data->irq =platform_get_irq (pdev,0 );if (alg_data->irq <0 ) { -dev_err (&pdev->dev,"Failed to get IRQ from platform resource\n" ); ret = alg_data->irq; goto out_clock; }
drivers/i2c/busses/i2c-pxa.c +0 -1
@@ -1219,7 +1219,6 @@ static int i2c_pxa_probe(struct platform_device *dev) irq =platform_get_irq (dev,0 );if (irq <0 ) { -dev_err (&dev->dev,"no irq resource: %d\n" , irq);return irq; }
drivers/i2c/busses/i2c-qcom-geni.c +0 -1
@@ -530,7 +530,6 @@ static int geni_i2c_probe(struct platform_device *pdev) gi2c->irq =platform_get_irq (pdev,0 );if (gi2c->irq <0 ) { -dev_err (&pdev->dev,"IRQ error for i2c-geni\n" );return gi2c->irq; }
drivers/i2c/busses/i2c-qup.c +0 -1
@@ -1769,7 +1769,6 @@ static int qup_i2c_probe(struct platform_device *pdev) qup->irq =platform_get_irq (pdev,0 );if (qup->irq <0 ) { -dev_err (qup->dev,"No IRQ defined\n" );return qup->irq; }
drivers/i2c/busses/i2c-rk3x.c +0 -1
@@ -1263,7 +1263,6 @@ static int rk3x_i2c_probe(struct platform_device *pdev)/* IRQ setup */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"cannot find rk3x IRQ\n" );return irq; }
drivers/i2c/busses/i2c-sprd.c +0 -1
@@ -494,7 +494,6 @@ static int sprd_i2c_probe(struct platform_device *pdev) i2c_dev->irq =platform_get_irq (pdev,0 );if (i2c_dev->irq <0 ) { -dev_err (&pdev->dev,"failed to get irq resource\n" );return i2c_dev->irq; }
drivers/i2c/busses/i2c-stm32f7.c +0 -6
@@ -1840,17 +1840,11 @@ static int stm32f7_i2c_probe(struct platform_device *pdev) irq_event =platform_get_irq (pdev,0 );if (irq_event <=0 ) { -if (irq_event != -EPROBE_DEFER ) -dev_err (&pdev->dev,"Failed to get IRQ event: %d\n" , - irq_event);return irq_event ? : -ENOENT ; } irq_error =platform_get_irq (pdev,1 );if (irq_error <=0 ) { -if (irq_error != -EPROBE_DEFER ) -dev_err (&pdev->dev,"Failed to get IRQ error: %d\n" , - irq_error);return irq_error ? : -ENOENT ; }
drivers/i2c/busses/i2c-sun6i-p2wi.c +0 -1
@@ -239,7 +239,6 @@ static int p2wi_probe(struct platform_device *pdev)strlcpy (p2wi->adapter.name, pdev->name,sizeof (p2wi->adapter.name)); irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to retrieve irq: %d\n" , irq);return irq; }
drivers/i2c/busses/i2c-synquacer.c +0 -1
@@ -581,7 +581,6 @@ static int synquacer_i2c_probe(struct platform_device *pdev) i2c->irq =platform_get_irq (pdev,0 );if (i2c->irq <0 ) { -dev_err (&pdev->dev,"no IRQ resource found\n" );return -ENODEV ; }
drivers/i2c/busses/i2c-uniphier-f.c +0 -1
@@ -554,7 +554,6 @@ static int uniphier_fi2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get IRQ number\n" );return irq; }
drivers/i2c/busses/i2c-uniphier.c +0 -1
@@ -342,7 +342,6 @@ static int uniphier_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get IRQ number\n" );return irq; }
drivers/i2c/busses/i2c-xlp9xx.c +0 -1
@@ -518,7 +518,6 @@ static int xlp9xx_i2c_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <=0 ) { -dev_err (&pdev->dev,"invalid irq!\n" );return priv->irq; }/* SMBAlert irq */
drivers/iio/adc/ad7606_par.c +0 -1
@@ -54,7 +54,6 @@ static int ad7606_par_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq: %d\n" , irq);return irq; }
drivers/iio/adc/at91_adc.c +0 -1
@@ -1180,7 +1180,6 @@ static int at91_adc_probe(struct platform_device *pdev) st->irq =platform_get_irq (pdev,0 );if (st->irq <0 ) { -dev_err (&pdev->dev,"No IRQ ID is designated\n" );return -ENODEV ; }
drivers/iio/adc/axp288_adc.c +0 -1
@@ -226,7 +226,6 @@ static int axp288_adc_probe(struct platform_device *pdev) info =iio_priv (indio_dev); info->irq =platform_get_irq (pdev,0 );if (info->irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return info->irq; }platform_set_drvdata (pdev, indio_dev);
drivers/iio/adc/bcm_iproc_adc.c +0 -1
@@ -541,7 +541,6 @@ static int iproc_adc_probe(struct platform_device *pdev) adc_priv->irqno =platform_get_irq (pdev,0 );if (adc_priv->irqno <=0 ) { -dev_err (&pdev->dev,"platform_get_irq failed\n" ); ret = -ENODEV ;return ret; }
drivers/iio/adc/da9150-gpadc.c +0 -1
@@ -338,7 +338,6 @@ static int da9150_gpadc_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"GPADC" );if (irq <0 ) { -dev_err (dev,"Failed to get IRQ: %d\n" , irq);return irq; }
drivers/iio/adc/envelope-detector.c +0 -2
@@ -358,8 +358,6 @@ static int envelope_detector_probe(struct platform_device *pdev) env->comp_irq =platform_get_irq_byname (pdev,"comp" );if (env->comp_irq <0 ) { -if (env->comp_irq != -EPROBE_DEFER ) -dev_err (dev,"failed to get compare interrupt\n" );return env->comp_irq; }
drivers/iio/adc/exynos_adc.c +0 -1
@@ -806,7 +806,6 @@ static int exynos_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return irq; } info->irq = irq;
drivers/iio/adc/fsl-imx25-gcq.c +0 -1
@@ -340,7 +340,6 @@ static int mx25_gcq_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <=0 ) { -dev_err (dev,"Failed to get IRQ\n" ); ret = priv->irq;if (!ret) ret = -ENXIO ;
drivers/iio/adc/imx7d_adc.c +0 -1
@@ -493,7 +493,6 @@ static int imx7d_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"No irq resource?\n" );return irq; }
drivers/iio/adc/lpc32xx_adc.c +0 -1
@@ -173,7 +173,6 @@ static int lpc32xx_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"failed getting interrupt resource\n" );return -ENXIO ; }
drivers/iio/adc/npcm_adc.c +0 -1
@@ -225,7 +225,6 @@ static int npcm_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"failed getting interrupt resource\n" ); ret = -EINVAL ; goto err_disable_clk; }
drivers/iio/adc/rockchip_saradc.c +0 -1
@@ -245,7 +245,6 @@ static int rockchip_saradc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return irq; }
drivers/iio/adc/sc27xx_adc.c +0 -1
@@ -529,7 +529,6 @@ static int sc27xx_adc_probe(struct platform_device *pdev) sc27xx_data->irq =platform_get_irq (pdev,0 );if (sc27xx_data->irq <0 ) { -dev_err (&pdev->dev,"failed to get ADC irq number\n" );return sc27xx_data->irq; }
drivers/iio/adc/spear_adc.c +0 -1
@@ -301,7 +301,6 @@ static int spear_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"failed getting interrupt resource\n" ); ret = -EINVAL ; goto errout2; }
drivers/iio/adc/stm32-adc-core.c +0 -1
@@ -349,7 +349,6 @@ static int stm32_adc_irq_probe(struct platform_device *pdev,*/ if (i && priv->irq[i] == -ENXIO )continue ; -dev_err (&pdev->dev,"failed to get irq\n" );return priv->irq[i]; }
drivers/iio/adc/stm32-adc.c +0 -1
@@ -1920,7 +1920,6 @@ static int stm32_adc_probe(struct platform_device *pdev) adc->irq =platform_get_irq (pdev,0 );if (adc->irq <0 ) { -dev_err (&pdev->dev,"failed to get irq\n" );return adc->irq; }
drivers/iio/adc/stm32-dfsdm-adc.c +0 -2
@@ -1602,8 +1602,6 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev)*/ 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; }
drivers/iio/adc/sun4i-gpadc-iio.c +0 -1
@@ -461,7 +461,6 @@ static int sun4i_irq_init(struct platform_device *pdev, const char *name, ret =platform_get_irq_byname (pdev, name);if (ret <0 ) { -dev_err (&pdev->dev,"no %s interrupt registered\n" , name);return ret; }
drivers/iio/adc/twl6030-gpadc.c +0 -1
@@ -906,7 +906,6 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq\n" );return irq; }
drivers/iio/adc/vf610_adc.c +0 -1
@@ -822,7 +822,6 @@ static int vf610_adc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return irq; }
drivers/infiniband/hw/hns/hns_roce_hw_v1.c +0 -1
@@ -4638,7 +4638,6 @@ static int hns_roce_get_cfg(struct hns_roce_dev *hr_dev)for (i =0 ; i <HNS_ROCE_V1_MAX_IRQ_NUM ; i++) { hr_dev->irq[i] =platform_get_irq (hr_dev->pdev, i);if (hr_dev->irq[i] <=0 ) { -dev_err (dev,"platform get of irq[=%d] failed!\n" , i);return -EINVAL ; } }
drivers/input/keyboard/bcm-keypad.c +0 -1
@@ -414,7 +414,6 @@ static int bcm_kp_probe(struct platform_device *pdev) kp->irq =platform_get_irq (pdev,0 );if (kp->irq <0 ) { -dev_err (&pdev->dev,"no IRQ specified\n" );return -EINVAL ; }
drivers/input/keyboard/davinci_keyscan.c +0 -1
@@ -192,7 +192,6 @@ static int __init davinci_ks_probe(struct platform_device *pdev) davinci_ks->irq =platform_get_irq (pdev,0 );if (davinci_ks->irq <0 ) { -dev_err (dev,"no key scan irq\n" ); error = davinci_ks->irq; goto fail2; }
drivers/input/keyboard/imx_keypad.c +0 -1
@@ -431,7 +431,6 @@ static int imx_keypad_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq defined in platform data\n" );return irq; }
drivers/input/keyboard/lpc32xx-keys.c +0 -1
@@ -173,7 +173,6 @@ static int lpc32xx_kscan_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get platform irq\n" );return -EINVAL ; }
drivers/input/keyboard/nomadik-ske-keypad.c +0 -1
@@ -236,7 +236,6 @@ static int __init ske_keypad_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get keypad irq\n" );return -EINVAL ; }
drivers/input/keyboard/nspire-keypad.c +0 -1
@@ -166,7 +166,6 @@ static int nspire_keypad_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get keypad irq\n" );return -EINVAL ; }
drivers/input/keyboard/opencores-kbd.c +0 -1
@@ -50,7 +50,6 @@ static int opencores_kbd_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"missing board IRQ resource\n" );return -EINVAL ; }
drivers/input/keyboard/pmic8xxx-keypad.c +0 -2
@@ -545,13 +545,11 @@ static int pmic8xxx_kp_probe(struct platform_device *pdev) kp->key_sense_irq =platform_get_irq (pdev,0 );if (kp->key_sense_irq <0 ) { -dev_err (&pdev->dev,"unable to get keypad sense irq\n" );return kp->key_sense_irq; } kp->key_stuck_irq =platform_get_irq (pdev,1 );if (kp->key_stuck_irq <0 ) { -dev_err (&pdev->dev,"unable to get keypad stuck irq\n" );return kp->key_stuck_irq; }
drivers/input/keyboard/pxa27x_keypad.c +0 -1
@@ -728,7 +728,6 @@ static int pxa27x_keypad_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get keypad irq\n" );return -ENXIO ; }
drivers/input/keyboard/pxa930_rotary.c +0 -1
@@ -90,7 +90,6 @@ static int pxa930_rotary_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq for rotary controller\n" );return -ENXIO ; }
drivers/input/keyboard/sh_keysc.c +0 -1
@@ -182,7 +182,6 @@ static int sh_keysc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq\n" ); goto err0; }
drivers/input/keyboard/snvs_pwrkey.c +0 -1
@@ -119,7 +119,6 @@ static int imx_snvs_pwrkey_probe(struct platform_device *pdev) pdata->irq =platform_get_irq (pdev,0 );if (pdata->irq <0 ) { -dev_err (&pdev->dev,"no irq defined in platform data\n" );return -EINVAL ; }
drivers/input/keyboard/spear-keyboard.c +0 -1
@@ -192,7 +192,6 @@ static int spear_kbd_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"not able to get irq for the device\n" );return irq; }
drivers/input/keyboard/st-keyscan.c +0 -1
@@ -188,7 +188,6 @@ static int keyscan_probe(struct platform_device *pdev) keypad_data->irq =platform_get_irq (pdev,0 );if (keypad_data->irq <0 ) { -dev_err (&pdev->dev,"no IRQ specified\n" );return -EINVAL ; }
drivers/input/keyboard/tegra-kbc.c +0 -1
@@ -632,7 +632,6 @@ static int tegra_kbc_probe(struct platform_device *pdev) kbc->irq =platform_get_irq (pdev,0 );if (kbc->irq <0 ) { -dev_err (&pdev->dev,"failed to get keyboard IRQ\n" );return -ENXIO ; }
drivers/input/keyboard/w90p910_keypad.c +0 -1
@@ -133,7 +133,6 @@ static int w90p910_keypad_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get keypad irq\n" );return -ENXIO ; }
drivers/input/misc/88pm80x_onkey.c +0 -1
@@ -77,7 +77,6 @@ static int pm80x_onkey_probe(struct platform_device *pdev) info->irq =platform_get_irq (pdev,0 );if (info->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" ); err = -EINVAL ; goto out; }
drivers/input/misc/88pm860x_onkey.c +0 -1
@@ -65,7 +65,6 @@ static int pm860x_onkey_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; }
drivers/input/misc/ab8500-ponkey.c +0 -2
@@ -56,13 +56,11 @@ static int ab8500_ponkey_probe(struct platform_device *pdev) irq_dbf =platform_get_irq_byname (pdev,"ONKEY_DBF" );if (irq_dbf <0 ) { -dev_err (&pdev->dev,"No IRQ for ONKEY_DBF, error=%d\n" , irq_dbf);return irq_dbf; } irq_dbr =platform_get_irq_byname (pdev,"ONKEY_DBR" );if (irq_dbr <0 ) { -dev_err (&pdev->dev,"No IRQ for ONKEY_DBR, error=%d\n" , irq_dbr);return irq_dbr; }
drivers/input/misc/axp20x-pek.c +0 -4
@@ -233,8 +233,6 @@ static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek, axp20x_pek->irq_dbr =platform_get_irq_byname (pdev,"PEK_DBR" );if (axp20x_pek->irq_dbr <0 ) { -dev_err (&pdev->dev,"No IRQ for PEK_DBR, error=%d\n" , - axp20x_pek->irq_dbr);return axp20x_pek->irq_dbr; } axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc,
@@ -242,8 +240,6 @@ static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek, axp20x_pek->irq_dbf =platform_get_irq_byname (pdev,"PEK_DBF" );if (axp20x_pek->irq_dbf <0 ) { -dev_err (&pdev->dev,"No IRQ for PEK_DBF, error=%d\n" , - axp20x_pek->irq_dbf);return axp20x_pek->irq_dbf; } axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc,
drivers/input/misc/da9055_onkey.c +0 -2
@@ -77,8 +77,6 @@ static int da9055_onkey_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"ONKEY" );if (irq <0 ) { -dev_err (&pdev->dev, -"Failed to get an IRQ for input device, %d\n" , irq);return -EINVAL ; }
drivers/input/misc/da9063_onkey.c +0 -1
@@ -250,7 +250,6 @@ static int da9063_onkey_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"ONKEY" );if (irq <0 ) { error = irq; -dev_err (&pdev->dev,"Failed to get platform IRQ: %d\n" , error);return error; }
drivers/input/misc/e3x0-button.c +0 -4
@@ -66,15 +66,11 @@ static int e3x0_button_probe(struct platform_device *pdev) irq_press =platform_get_irq_byname (pdev,"press" );if (irq_press <0 ) { -dev_err (&pdev->dev,"No IRQ for 'press', error=%d\n" , - irq_press);return irq_press; } irq_release =platform_get_irq_byname (pdev,"release" );if (irq_release <0 ) { -dev_err (&pdev->dev,"No IRQ for 'release', error=%d\n" , - irq_release);return irq_release; }
drivers/input/misc/hisi_powerkey.c +0 -2
@@ -92,8 +92,6 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev, hi65xx_irq_info[i].name);if (irq <0 ) { error = irq; -dev_err (dev,"couldn't get irq %s: %d\n" , - hi65xx_irq_info[i].name, error);return error; }
drivers/input/misc/max8925_onkey.c +0 -2
@@ -72,13 +72,11 @@ static int max8925_onkey_probe(struct platform_device *pdev) irq[0 ] =platform_get_irq (pdev,0 );if (irq[0 ] <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; } irq[1 ] =platform_get_irq (pdev,1 );if (irq[1 ] <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; }
drivers/input/misc/pm8941-pwrkey.c +0 -1
@@ -206,7 +206,6 @@ static int pm8941_pwrkey_probe(struct platform_device *pdev) pwrkey->irq =platform_get_irq (pdev,0 );if (pwrkey->irq <0 ) { -dev_err (&pdev->dev,"failed to get irq\n" );return pwrkey->irq; }
drivers/input/misc/rk805-pwrkey.c +0 -2
@@ -54,13 +54,11 @@ static int rk805_pwrkey_probe(struct platform_device *pdev) fall_irq =platform_get_irq (pdev,0 );if (fall_irq <0 ) { -dev_err (&pdev->dev,"Can't get fall irq: %d\n" , fall_irq);return fall_irq; } rise_irq =platform_get_irq (pdev,1 );if (rise_irq <0 ) { -dev_err (&pdev->dev,"Can't get rise irq: %d\n" , rise_irq);return rise_irq; }
drivers/input/misc/stpmic1_onkey.c +0 -4
@@ -62,15 +62,11 @@ static int stpmic1_onkey_probe(struct platform_device *pdev) onkey->irq_falling =platform_get_irq_byname (pdev,"onkey-falling" );if (onkey->irq_falling <0 ) { -dev_err (dev,"failed: request IRQ onkey-falling %d\n" , - onkey->irq_falling);return onkey->irq_falling; } onkey->irq_rising =platform_get_irq_byname (pdev,"onkey-rising" );if (onkey->irq_rising <0 ) { -dev_err (dev,"failed: request IRQ onkey-rising %d\n" , - onkey->irq_rising);return onkey->irq_rising; }
drivers/input/misc/tps65218-pwrbutton.c +0 -1
@@ -125,7 +125,6 @@ static int tps6521x_pb_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"No IRQ resource!\n" );return -EINVAL ; }
drivers/input/misc/twl6040-vibra.c +0 -1
@@ -273,7 +273,6 @@ static int twl6040_vibra_probe(struct platform_device *pdev) info->irq =platform_get_irq (pdev,0 );if (info->irq <0 ) { -dev_err (info->dev,"invalid irq\n" );return -EINVAL ; }
drivers/input/mouse/pxa930_trkball.c +0 -1
@@ -148,7 +148,6 @@ static int pxa930_trkball_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get trkball irq\n" );return -ENXIO ; }
drivers/input/serio/arc_ps2.c +0 -1
@@ -188,7 +188,6 @@ static int arc_ps2_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"arc_ps2_irq" );if (irq <0 ) { -dev_err (&pdev->dev,"no IRQ defined\n" );return -EINVAL ; }
drivers/input/serio/ps2-gpio.c +0 -2
@@ -369,8 +369,6 @@ static int ps2_gpio_probe(struct platform_device *pdev) drvdata->irq =platform_get_irq (pdev,0 );if (drvdata->irq <0 ) { -dev_err (dev,"failed to get irq from platform resource: %d\n" , - drvdata->irq); error = drvdata->irq; goto err_free_serio; }
drivers/input/touchscreen/88pm860x-ts.c +0 -1
@@ -186,7 +186,6 @@ static int pm860x_touch_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; }
drivers/input/touchscreen/bcm_iproc_tsc.c +0 -1
@@ -490,7 +490,6 @@ static int iproc_ts_probe(struct platform_device *pdev)/* get interrupt */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"platform_get_irq failed: %d\n" , irq);return irq; }
drivers/input/touchscreen/fsl-imx25-tcq.c +0 -1
@@ -529,7 +529,6 @@ static int mx25_tcq_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <=0 ) { -dev_err (dev,"Failed to get IRQ\n" );return priv->irq; }
drivers/input/touchscreen/imx6ul_tsc.c +0 -2
@@ -431,13 +431,11 @@ static int imx6ul_tsc_probe(struct platform_device *pdev) tsc_irq =platform_get_irq (pdev,0 );if (tsc_irq <0 ) { -dev_err (&pdev->dev,"no tsc irq resource?\n" );return tsc_irq; } adc_irq =platform_get_irq (pdev,1 );if (adc_irq <0 ) { -dev_err (&pdev->dev,"no adc irq resource?\n" );return adc_irq; }
drivers/input/touchscreen/lpc32xx_ts.c +0 -1
@@ -213,7 +213,6 @@ static int lpc32xx_ts_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Can't get interrupt resource\n" );return irq; }
drivers/iommu/exynos-iommu.c +0 -1
@@ -584,7 +584,6 @@ static int __init exynos_sysmmu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"Unable to find IRQ resource\n" );return irq; }
drivers/iommu/msm_iommu.c +0 -1
@@ -750,7 +750,6 @@ static int msm_iommu_probe(struct platform_device *pdev) iommu->irq =platform_get_irq (pdev,0 );if (iommu->irq <0 ) { -dev_err (iommu->dev,"could not get iommu irq\n" ); ret = -ENODEV ; goto fail; }
drivers/iommu/qcom_iommu.c +0 -1
@@ -697,7 +697,6 @@ static int qcom_iommu_ctx_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get irq\n" );return -ENODEV ; }
drivers/irqchip/irq-imgpdc.c +0 -2
@@ -363,7 +363,6 @@ static int pdc_intc_probe(struct platform_device *pdev)for (i =0 ; i < priv->nr_perips; ++i) { irq =platform_get_irq (pdev,1 + i);if (irq <0 ) { -dev_err (&pdev->dev,"cannot find perip IRQ #%u\n" , i);return irq; } priv->perip_irqs[i] = irq;
@@ -377,7 +376,6 @@ static int pdc_intc_probe(struct platform_device *pdev)/* Get syswake IRQ number */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"cannot find syswake IRQ\n" );return irq; } priv->syswake_irq = irq;
drivers/irqchip/irq-keystone.c +0 -1
@@ -165,7 +165,6 @@ static int keystone_irq_probe(struct platform_device *pdev) kirq->irq =platform_get_irq (pdev,0 );if (kirq->irq <0 ) { -dev_err (dev,"no irq resource %d\n" , kirq->irq);return kirq->irq; }
drivers/irqchip/qcom-irq-combiner.c +0 -1
@@ -249,7 +249,6 @@ static int __init combiner_probe(struct platform_device *pdev) combiner->parent_irq =platform_get_irq (pdev,0 );if (combiner->parent_irq <=0 ) { -dev_err (&pdev->dev,"Error getting IRQ resource\n" );return -EPROBE_DEFER ; }
drivers/mailbox/armada-37xx-rwtm-mailbox.c +0 -1
@@ -166,7 +166,6 @@ static int armada_37xx_mbox_probe(struct platform_device *pdev) mbox->irq =platform_get_irq (pdev,0 );if (mbox->irq <0 ) { -dev_err (&pdev->dev,"Cannot get irq\n" );return mbox->irq; }
drivers/mailbox/platform_mhu.c +0 -1
@@ -138,7 +138,6 @@ static int platform_mhu_probe(struct platform_device *pdev) mhu->chan[i].con_priv = &mhu->mlink[i]; mhu->mlink[i].irq =platform_get_irq (pdev, i);if (mhu->mlink[i].irq <0 ) { -dev_err (dev,"failed to get irq%d\n" , i);return mhu->mlink[i].irq; } mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i];
drivers/mailbox/stm32-ipcc.c +0 -5
@@ -258,9 +258,6 @@ static int stm32_ipcc_probe(struct platform_device *pdev)for (i =0 ; i <IPCC_IRQ_NUM ; i++) { ipcc->irqs[i] =platform_get_irq_byname (pdev, irq_name[i]);if (ipcc->irqs[i] <0 ) { -if (ipcc->irqs[i] != -EPROBE_DEFER ) -dev_err (dev,"no IRQ specified %s\n" , - irq_name[i]); ret = ipcc->irqs[i]; goto err_clk; }
@@ -284,8 +281,6 @@ static int stm32_ipcc_probe(struct platform_device *pdev)if (of_property_read_bool (np,"wakeup-source" )) { ipcc->wkp =platform_get_irq_byname (pdev,"wakeup" );if (ipcc->wkp <0 ) { -if (ipcc->wkp != -EPROBE_DEFER ) -dev_err (dev,"could not get wakeup IRQ\n" ); ret = ipcc->wkp; goto err_clk; }
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -1
@@ -669,7 +669,6 @@ static int zynqmp_ipi_probe(struct platform_device *pdev)/* IPI IRQ */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"unable to find IPI IRQ.\n" ); goto free_mbox_dev; } pdata->irq = ret;
drivers/media/platform/am437x/am437x-vpfe.c +0 -1
@@ -2557,7 +2557,6 @@ static int vpfe_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <=0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" ); ret = -ENODEV ; goto probe_out_cleanup; }
drivers/media/platform/atmel/atmel-sama5d2-isc.c +0 -1
@@ -162,7 +162,6 @@ static int atmel_isc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { ret = irq; -dev_err (dev,"failed to get irq: %d\n" , ret);return ret; }
drivers/media/platform/exynos4-is/mipi-csis.c +0 -1
@@ -804,7 +804,6 @@ static int s5pcsis_probe(struct platform_device *pdev) state->irq =platform_get_irq (pdev,0 );if (state->irq <0 ) { -dev_err (dev,"Failed to get irq\n" );return state->irq; }
drivers/media/platform/imx-pxp.c +0 -1
@@ -1662,7 +1662,6 @@ static int pxp_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get irq resource: %d\n" , irq);return irq; }
drivers/media/platform/omap3isp/isp.c +0 -1
@@ -2324,7 +2324,6 @@ static int isp_probe(struct platform_device *pdev)/* Interrupt */ ret =platform_get_irq (pdev,0 );if (ret <=0 ) { -dev_err (isp->dev,"No IRQ resource\n" ); ret = -ENODEV ; goto error_iommu; }
drivers/media/platform/renesas-ceu.c +0 -1
@@ -1660,7 +1660,6 @@ static int ceu_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"Failed to get irq: %d\n" , ret); goto error_free_ceudev; } irq = ret;
drivers/media/platform/rockchip/rga/rga.c +0 -1
@@ -831,7 +831,6 @@ static int rga_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (rga->dev,"failed to get irq\n" ); ret = irq; goto err_put_clk; }
drivers/media/platform/s3c-camif/camif-core.c +0 -1
@@ -387,7 +387,6 @@ static int camif_request_irqs(struct platform_device *pdev, irq =platform_get_irq (pdev, i);if (irq <=0 ) { -dev_err (&pdev->dev,"failed to get IRQ %d\n" , i);return -ENXIO ; }
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +0 -2
@@ -694,13 +694,11 @@ static int c8sectpfe_probe(struct platform_device *pdev) fei->idle_irq =platform_get_irq_byname (pdev,"c8sectpfe-idle-irq" );if (fei->idle_irq <0 ) { -dev_err (dev,"Can't get c8sectpfe-idle-irq\n" );return fei->idle_irq; } fei->error_irq =platform_get_irq_byname (pdev,"c8sectpfe-error-irq" );if (fei->error_irq <0 ) { -dev_err (dev,"Can't get c8sectpfe-error-irq\n" );return fei->error_irq; }
drivers/media/platform/sti/hva/hva-hw.c +0 -2
@@ -342,7 +342,6 @@ int hva_hw_probe(struct platform_device *pdev, struct hva_dev *hva)/* get status interruption resource */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"%s failed to get status IRQ\n" ,HVA_PREFIX ); goto err_clk; } hva->irq_its = ret;
@@ -361,7 +360,6 @@ int hva_hw_probe(struct platform_device *pdev, struct hva_dev *hva)/* get error interruption resource */ ret =platform_get_irq (pdev,1 );if (ret <0 ) { -dev_err (dev,"%s failed to get error IRQ\n" ,HVA_PREFIX ); goto err_clk; } hva->irq_err = ret;
drivers/media/platform/stm32/stm32-dcmi.c +0 -2
@@ -1700,8 +1700,6 @@ static int dcmi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -if (irq != -EPROBE_DEFER ) -dev_err (&pdev->dev,"Could not get irq\n" );return irq ? irq : -ENXIO ; }
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c +0 -1
@@ -867,7 +867,6 @@ static int sun6i_csi_resource_request(struct sun6i_csi_dev *sdev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No csi IRQ specified\n" ); ret = -ENXIO ;return ret; }
drivers/media/rc/img-ir/img-ir-core.c +0 -1
@@ -82,7 +82,6 @@ static int img_ir_probe(struct platform_device *pdev)/* Get resources from platform device */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"cannot find IRQ resource\n" );return irq; }
drivers/media/rc/ir-hix5hd2.c +0 -1
@@ -233,7 +233,6 @@ static int hix5hd2_ir_probe(struct platform_device *pdev) priv->irq =platform_get_irq (pdev,0 );if (priv->irq <0 ) { -dev_err (dev,"irq can not get\n" );return priv->irq; }
drivers/media/rc/meson-ir.c +0 -1
@@ -118,7 +118,6 @@ static int meson_ir_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no irq resource\n" );return irq; }
drivers/media/rc/mtk-cir.c +0 -1
@@ -354,7 +354,6 @@ static int mtk_ir_probe(struct platform_device *pdev) ir->irq =platform_get_irq (pdev,0 );if (ir->irq <0 ) { -dev_err (dev,"no irq resource\n" );return -ENODEV ; }
drivers/media/rc/sunxi-cir.c +0 -1
@@ -233,7 +233,6 @@ static int sunxi_ir_probe(struct platform_device *pdev)/* IRQ */ ir->irq =platform_get_irq (pdev,0 );if (ir->irq <0 ) { -dev_err (dev,"no irq resource\n" ); ret = ir->irq; goto exit_free_dev; }
drivers/memory/emif.c +0 -2
@@ -1564,8 +1564,6 @@ static int __init_or_module emif_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (emif->dev,"%s: error getting IRQ resource - %d\n" , - __func__, irq); goto error; }
drivers/memory/tegra/mc.c +0 -1
@@ -678,7 +678,6 @@ static int tegra_mc_probe(struct platform_device *pdev) mc->irq =platform_get_irq (pdev,0 );if (mc->irq <0 ) { -dev_err (&pdev->dev,"interrupt not specified\n" );return mc->irq; }
drivers/mfd/ab8500-debugfs.c +0 -2
@@ -2683,13 +2683,11 @@ static int ab8500_debug_probe(struct platform_device *plf) irq_first =platform_get_irq_byname (plf,"IRQ_FIRST" );if (irq_first <0 ) { -dev_err (&plf->dev,"First irq not found, err %d\n" , irq_first);return irq_first; } irq_last =platform_get_irq_byname (plf,"IRQ_LAST" );if (irq_last <0 ) { -dev_err (&plf->dev,"Last irq not found, err %d\n" , irq_last);return irq_last; }
drivers/mfd/db8500-prcmu.c +0 -1
@@ -3129,7 +3129,6 @@ static int db8500_prcmu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"no prcmu irq provided\n" );return irq; }
drivers/mfd/fsl-imx25-tsadc.c +0 -1
@@ -70,7 +70,6 @@ static int mx25_tsadc_setup_irq(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"Failed to get irq\n" );return irq; }
drivers/mfd/intel_soc_pmic_bxtwc.c +0 -1
@@ -451,7 +451,6 @@ static int bxtwc_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (&pdev->dev,"Invalid IRQ\n" );return ret; } pmic->irq = ret;
drivers/mfd/jz4740-adc.c +0 -2
@@ -210,13 +210,11 @@ static int jz4740_adc_probe(struct platform_device *pdev) adc->irq =platform_get_irq (pdev,0 );if (adc->irq <0 ) { ret = adc->irq; -dev_err (&pdev->dev,"Failed to get platform irq: %d\n" , ret);return ret; } irq_base =platform_get_irq (pdev,1 );if (irq_base <0 ) { -dev_err (&pdev->dev,"Failed to get irq base: %d\n" , irq_base);return irq_base; }
drivers/mfd/qcom_rpm.c +0 -3
@@ -562,19 +562,16 @@ static int qcom_rpm_probe(struct platform_device *pdev) irq_ack =platform_get_irq_byname (pdev,"ack" );if (irq_ack <0 ) { -dev_err (&pdev->dev,"required ack interrupt missing\n" );return irq_ack; } irq_err =platform_get_irq_byname (pdev,"err" );if (irq_err <0 ) { -dev_err (&pdev->dev,"required err interrupt missing\n" );return irq_err; } irq_wakeup =platform_get_irq_byname (pdev,"wakeup" );if (irq_wakeup <0 ) { -dev_err (&pdev->dev,"required wakeup interrupt missing\n" );return irq_wakeup; }
drivers/mfd/sm501.c +0 -1
@@ -1395,7 +1395,6 @@ static int sm501_plat_probe(struct platform_device *dev) ret =platform_get_irq (dev,0 );if (ret <0 ) { -dev_err (&dev->dev,"failed to get irq resource\n" ); goto err_res; } sm->irq = ret;
drivers/misc/spear13xx_pcie_gadget.c +0 -1
@@ -703,7 +703,6 @@ static int spear_pcie_gadget_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no update irq?\n" );return irq; }
drivers/mmc/host/bcm2835.c +0 -1
@@ -1409,7 +1409,6 @@ static int bcm2835_probe(struct platform_device *pdev) host->irq =platform_get_irq (pdev,0 );if (host->irq <=0 ) { -dev_err (dev,"get IRQ failed\n" ); ret = -EINVAL ; goto err; }
drivers/mmc/host/jz4740_mmc.c +0 -1
@@ -969,7 +969,6 @@ static int jz4740_mmc_probe(struct platform_device* pdev) host->irq =platform_get_irq (pdev,0 );if (host->irq <0 ) { ret = host->irq; -dev_err (&pdev->dev,"Failed to get platform irq: %d\n" , ret); goto err_free_host; }
drivers/mmc/host/meson-gx-mmc.c +0 -1
@@ -1091,7 +1091,6 @@ static int meson_mmc_probe(struct platform_device *pdev) host->irq =platform_get_irq (pdev,0 );if (host->irq <=0 ) { -dev_err (&pdev->dev,"failed to get interrupt resource.\n" ); ret = -EINVAL ; goto free_host; }
drivers/mmc/host/mxcmmc.c +0 -1
@@ -1011,7 +1011,6 @@ static int mxcmci_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ: %d\n" , irq);return irq; }
drivers/mmc/host/s3cmci.c +0 -1
@@ -1614,7 +1614,6 @@ static int s3cmci_probe(struct platform_device *pdev) host->irq =platform_get_irq (pdev,0 );if (host->irq <=0 ) { -dev_err (&pdev->dev,"failed to get interrupt resource.\n" ); ret = -EINVAL ; goto probe_iounmap; }
drivers/mmc/host/sdhci-msm.c +0 -2
@@ -1917,8 +1917,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)/* Setup IRQ for handling power/voltage tasks with PMIC */ msm_host->pwr_irq =platform_get_irq_byname (pdev,"pwr_irq" );if (msm_host->pwr_irq <0 ) { -dev_err (&pdev->dev,"Get pwr_irq failed (%d)\n" , - msm_host->pwr_irq); ret = msm_host->pwr_irq; goto clk_disable; }
drivers/mmc/host/sdhci-pltfm.c +0 -1
@@ -131,7 +131,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ number\n" ); ret = irq; goto err; }
drivers/mmc/host/sdhci-s3c.c +0 -1
@@ -491,7 +491,6 @@ static int sdhci_s3c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no irq specified\n" );return irq; }
drivers/mmc/host/sdhci_f_sdh30.c +0 -1
@@ -120,7 +120,6 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"%s: no irq specified\n" , __func__);return irq; }
drivers/mmc/host/uniphier-sd.c +0 -1
@@ -558,7 +558,6 @@ static int uniphier_sd_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get IRQ number" );return irq; }
drivers/mtd/devices/spear_smi.c +0 -1
@@ -933,7 +933,6 @@ static int spear_smi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { ret = -ENODEV ; -dev_err (&pdev->dev,"invalid smi irq\n" ); goto err; }
drivers/mtd/nand/raw/denali_dt.c +0 -1
@@ -168,7 +168,6 @@ static int denali_dt_probe(struct platform_device *pdev) denali->dev = dev; denali->irq =platform_get_irq (pdev,0 );if (denali->irq <0 ) { -dev_err (dev,"no irq defined\n" );return denali->irq; }
drivers/mtd/nand/raw/hisi504_nand.c +0 -1
@@ -752,7 +752,6 @@ static int hisi_nfc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no IRQ resource defined\n" );return -ENXIO ; }
drivers/mtd/nand/raw/lpc32xx_mlc.c +0 -1
@@ -773,7 +773,6 @@ static int lpc32xx_nand_probe(struct platform_device *pdev) host->irq =platform_get_irq (pdev,0 );if (host->irq <0 ) { -dev_err (&pdev->dev,"failed to get platform irq\n" ); res = -EINVAL ; goto release_dma_chan; }
drivers/mtd/nand/raw/marvell_nand.c +0 -1
@@ -2863,7 +2863,6 @@ static int marvell_nfc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to retrieve irq\n" );return irq; }
drivers/mtd/nand/raw/meson_nand.c +0 -1
@@ -1399,7 +1399,6 @@ static int meson_nfc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no NFC IRQ resource\n" );return -EINVAL ; }
drivers/mtd/nand/raw/mtk_ecc.c +0 -1
@@ -528,7 +528,6 @@ static int mtk_ecc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to get irq: %d\n" , irq);return irq; }
drivers/mtd/nand/raw/mtk_nand.c +0 -1
@@ -1540,7 +1540,6 @@ static int mtk_nfc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no nfi irq resource\n" ); ret = -EINVAL ; goto clk_disable; }
drivers/mtd/nand/raw/omap2.c +0 -2
@@ -1968,7 +1968,6 @@ static int omap_nand_attach_chip(struct nand_chip *chip)case NAND_OMAP_PREFETCH_IRQ : info->gpmc_irq_fifo =platform_get_irq (info->pdev,0 );if (info->gpmc_irq_fifo <=0 ) { -dev_err (dev,"Error getting fifo IRQ\n" );return -ENODEV ; } err = devm_request_irq(dev, info->gpmc_irq_fifo,
@@ -1983,7 +1982,6 @@ static int omap_nand_attach_chip(struct nand_chip *chip) info->gpmc_irq_count =platform_get_irq (info->pdev,1 );if (info->gpmc_irq_count <=0 ) { -dev_err (dev,"Error getting IRQ count\n" );return -ENODEV ; } err = devm_request_irq(dev, info->gpmc_irq_count,
drivers/mtd/nand/raw/sh_flctl.c +0 -1
@@ -1130,7 +1130,6 @@ static int flctl_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get flste irq data: %d\n" , irq);return irq; }
drivers/mtd/nand/raw/stm32_fmc2_nand.c +0 -2
@@ -1913,8 +1913,6 @@ static int stm32_fmc2_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -if (irq != -EPROBE_DEFER ) -dev_err (dev,"IRQ error missing or invalid\n" );return irq; }
drivers/mtd/nand/raw/sunxi_nand.c +0 -1
@@ -2072,7 +2072,6 @@ static int sunxi_nfc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"failed to retrieve irq\n" );return irq; }
drivers/mtd/spi-nor/cadence-quadspi.c +0 -1
@@ -1376,7 +1376,6 @@ static int cqspi_probe(struct platform_device *pdev)/* Obtain IRQ line. */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Cannot obtain IRQ.\n" );return -ENXIO ; }
drivers/net/can/janz-ican3.c +0 -1
@@ -1936,7 +1936,6 @@ static int ican3_probe(struct platform_device *pdev)/* find our IRQ number */ mod->irq =platform_get_irq (pdev,0 );if (mod->irq <0 ) { -dev_err (dev,"IRQ line not found\n" ); ret = -ENODEV ; goto out_free_ndev; }
drivers/net/can/rcar/rcar_can.c +0 -1
@@ -759,7 +759,6 @@ static int rcar_can_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" ); err = irq; goto fail; }
drivers/net/can/rcar/rcar_canfd.c +0 -2
@@ -1651,14 +1651,12 @@ static int rcar_canfd_probe(struct platform_device *pdev) ch_irq =platform_get_irq (pdev,0 );if (ch_irq <0 ) { -dev_err (&pdev->dev,"no Channel IRQ resource\n" ); err = ch_irq; goto fail_dev; } g_irq =platform_get_irq (pdev,1 );if (g_irq <0 ) { -dev_err (&pdev->dev,"no Global IRQ resource\n" ); err = g_irq; goto fail_dev; }
drivers/net/can/sun4i_can.c +0 -1
@@ -787,7 +787,6 @@ static int sun4ican_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"could not get a valid irq\n" ); err = -ENODEV ; goto exit; }
drivers/net/ethernet/amd/au1000_eth.c +0 -1
@@ -1100,7 +1100,6 @@ static int au1000_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to retrieve IRQ\n" ); err = -ENODEV ; goto out; }
drivers/net/ethernet/amd/xgbe/xgbe-platform.c +0 -2
@@ -468,7 +468,6 @@ static int xgbe_platform_probe(struct platform_device *pdev)/* Get the device interrupt */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"platform_get_irq 0 failed\n" ); goto err_io; } pdata->dev_irq = ret;
@@ -497,7 +496,6 @@ static int xgbe_platform_probe(struct platform_device *pdev)/* Get the auto-negotiation interrupt */ ret =platform_get_irq (phy_pdev, phy_irqnum++);if (ret <0 ) { -dev_err (dev,"platform_get_irq phy 0 failed\n" ); goto err_io; } pdata->an_irq = ret;
drivers/net/ethernet/apm/xgene-v2/main.c +0 -1
@@ -55,7 +55,6 @@ static int xge_get_resources(struct xge_pdata *pdata) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"Unable to get irq\n" );return ret; } pdata->resources.irq = ret;
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +0 -1
@@ -1636,7 +1636,6 @@ static int xgene_enet_get_irqs(struct xgene_enet_pdata *pdata) pdata->cq_cnt = max_irqs /2 ;break ; } -dev_err (dev,"Unable to get ENET IRQ\n" ); ret = ret ? : -ENXIO ;return ret; }
drivers/net/ethernet/aurora/nb8800.c +0 -1
@@ -1352,7 +1352,6 @@ static int nb8800_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (&pdev->dev,"No IRQ\n" );return -EINVAL ; }
drivers/net/ethernet/broadcom/bgmac-platform.c +0 -1
@@ -200,7 +200,6 @@ static int bgmac_probe(struct platform_device *pdev) bgmac->irq =platform_get_irq (pdev,0 );if (bgmac->irq <0 ) { -dev_err (&pdev->dev,"Unable to obtain IRQ\n" );return bgmac->irq; }
drivers/net/ethernet/cortina/gemini.c +0 -1
@@ -2424,7 +2424,6 @@ static int gemini_ethernet_port_probe(struct platform_device *pdev)/* Interrupt */ irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"no IRQ\n" );return irq ? irq : -ENODEV ; } port->irq = irq;
drivers/net/ethernet/davicom/dm9000.c +0 -2
@@ -1500,8 +1500,6 @@ dm9000_probe(struct platform_device *pdev) ndev->irq =platform_get_irq (pdev,0 );if (ndev->irq <0 ) { -dev_err (db->dev,"interrupt resource unavailable: %d\n" , - ndev->irq); ret = ndev->irq; goto out; }
drivers/net/ethernet/hisilicon/hisi_femac.c +0 -1
@@ -877,7 +877,6 @@ static int hisi_femac_drv_probe(struct platform_device *pdev) ndev->irq =platform_get_irq (pdev,0 );if (ndev->irq <=0 ) { -dev_err (dev,"No irq resource\n" ); ret = -ENODEV ; goto out_disconnect_phy; }
drivers/net/ethernet/lantiq_xrx200.c +0 -4
@@ -459,14 +459,10 @@ static int xrx200_probe(struct platform_device *pdev) priv->chan_rx.dma.irq =platform_get_irq_byname (pdev,"rx" );if (priv->chan_rx.dma.irq <0 ) { -dev_err (dev,"failed to get RX IRQ, %i\n" , - priv->chan_rx.dma.irq);return -ENOENT ; } priv->chan_tx.dma.irq =platform_get_irq_byname (pdev,"tx" );if (priv->chan_tx.dma.irq <0 ) { -dev_err (dev,"failed to get TX IRQ, %i\n" , - priv->chan_tx.dma.irq);return -ENOENT ; }
drivers/net/ethernet/nuvoton/w90p910_ether.c +0 -2
@@ -993,14 +993,12 @@ static int w90p910_ether_probe(struct platform_device *pdev) ether->txirq =platform_get_irq (pdev,0 );if (ether->txirq <0 ) { -dev_err (&pdev->dev,"failed to get ether tx irq\n" ); error = -ENXIO ; goto failed_free_io; } ether->rxirq =platform_get_irq (pdev,1 );if (ether->rxirq <0 ) { -dev_err (&pdev->dev,"failed to get ether rx irq\n" ); error = -ENXIO ; goto failed_free_io; }
drivers/net/ethernet/qualcomm/emac/emac.c +0 -2
@@ -557,8 +557,6 @@ static int emac_probe_resources(struct platform_device *pdev,/* Core 0 interrupt */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (&pdev->dev, -"error: missing core0 irq resource (error=%i)\n" , ret);return ret; } adpt->irq.irq = ret;
drivers/net/ethernet/socionext/sni_ave.c +0 -1
@@ -1574,7 +1574,6 @@ static int ave_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"IRQ not found\n" );return irq; }
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c +0 -4
@@ -429,10 +429,6 @@ static int dwc_eth_dwmac_probe(struct platform_device *pdev)*/ stmmac_res.irq =platform_get_irq (pdev,0 );if (stmmac_res.irq <0 ) { -if (stmmac_res.irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"IRQ configuration information not found\n" ); -return stmmac_res.irq; } stmmac_res.wol_irq = stmmac_res.irq;
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +0 -4
@@ -603,10 +603,6 @@ int stmmac_get_platform_resources(struct platform_device *pdev,*/ stmmac_res->irq =platform_get_irq_byname (pdev,"macirq" );if (stmmac_res->irq <0 ) { -if (stmmac_res->irq != -EPROBE_DEFER ) { -dev_err (&pdev->dev, -"MAC IRQ configuration information not found\n" ); - }return stmmac_res->irq; }
drivers/net/wireless/mediatek/mt76/mt7603/soc.c +0 -1
@@ -18,7 +18,6 @@ mt76_wmac_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get device IRQ\n" );return irq; }
drivers/pci/controller/dwc/pci-dra7xx.c +0 -2
@@ -463,7 +463,6 @@ static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx, pp->irq =platform_get_irq (pdev,1 );if (pp->irq <0 ) { -dev_err (dev,"missing IRQ resource\n" );return pp->irq; }
@@ -714,7 +713,6 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"missing IRQ resource: %d\n" , irq);return irq; }
drivers/pci/controller/dwc/pci-exynos.c +0 -2
@@ -403,7 +403,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep, pp->irq =platform_get_irq (pdev,1 );if (pp->irq <0 ) { -dev_err (dev,"failed to get irq\n" );return pp->irq; } ret = devm_request_irq(dev, pp->irq, exynos_pcie_irq_handler,
@@ -416,7 +415,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep,if (IS_ENABLED (CONFIG_PCI_MSI )) { pp->msi_irq =platform_get_irq (pdev,0 );if (pp->msi_irq <0 ) { -dev_err (dev,"failed to get msi irq\n" );return pp->msi_irq; } }
drivers/pci/controller/dwc/pci-imx6.c +0 -1
@@ -868,7 +868,6 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie,if (IS_ENABLED (CONFIG_PCI_MSI )) { pp->msi_irq =platform_get_irq_byname (pdev,"msi" );if (pp->msi_irq <=0 ) { -dev_err (dev,"failed to get MSI irq\n" );return -ENODEV ; } }
drivers/pci/controller/dwc/pci-keystone.c +0 -1
@@ -1248,7 +1248,6 @@ static int __init ks_pcie_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"missing IRQ resource: %d\n" , irq);return irq; }
drivers/pci/controller/dwc/pci-meson.c +0 -1
@@ -501,7 +501,6 @@ static int meson_add_pcie_port(struct meson_pcie *mp,if (IS_ENABLED (CONFIG_PCI_MSI )) { pp->msi_irq =platform_get_irq (pdev,0 );if (pp->msi_irq <0 ) { -dev_err (dev,"failed to get MSI IRQ\n" );return pp->msi_irq; } }
drivers/pci/controller/dwc/pcie-armada8k.c +0 -1
@@ -250,7 +250,6 @@ static int armada8k_add_pcie_port(struct armada8k_pcie *pcie, pp->irq =platform_get_irq (pdev,0 );if (pp->irq <0 ) { -dev_err (dev,"failed to get irq for port\n" );return pp->irq; }
drivers/pci/controller/dwc/pcie-artpec6.c +0 -1
@@ -394,7 +394,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie,if (IS_ENABLED (CONFIG_PCI_MSI )) { pp->msi_irq =platform_get_irq_byname (pdev,"msi" );if (pp->msi_irq <0 ) { -dev_err (dev,"failed to get MSI irq\n" );return pp->msi_irq; } }
drivers/pci/controller/dwc/pcie-histb.c +0 -1
@@ -403,7 +403,6 @@ static int histb_pcie_probe(struct platform_device *pdev)if (IS_ENABLED (CONFIG_PCI_MSI )) { pp->msi_irq =platform_get_irq_byname (pdev,"msi" );if (pp->msi_irq <0 ) { -dev_err (dev,"Failed to get MSI IRQ\n" );return pp->msi_irq; } }
drivers/pci/controller/dwc/pcie-kirin.c +0 -2
@@ -456,8 +456,6 @@ static int kirin_pcie_add_msi(struct dw_pcie *pci,if (IS_ENABLED (CONFIG_PCI_MSI )) { irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev, -"failed to get MSI IRQ (%d)\n" , irq);return irq; }
drivers/pci/controller/dwc/pcie-spear13xx.c +0 -1
@@ -199,7 +199,6 @@ static int spear13xx_add_pcie_port(struct spear13xx_pcie *spear13xx_pcie, pp->irq =platform_get_irq (pdev,0 );if (pp->irq <0 ) { -dev_err (dev,"failed to get irq\n" );return pp->irq; } ret = devm_request_irq(dev, pp->irq, spear13xx_pcie_irq_handler,
drivers/pci/controller/pci-tegra.c +0 -2
@@ -1550,7 +1550,6 @@ static int tegra_pcie_get_resources(struct tegra_pcie *pcie)/* request interrupt */ err =platform_get_irq_byname (pdev,"intr" );if (err <0 ) { -dev_err (dev,"failed to get IRQ: %d\n" , err); goto phys_put; }
@@ -1768,7 +1767,6 @@ static int tegra_pcie_msi_setup(struct tegra_pcie *pcie) err =platform_get_irq_byname (pdev,"msi" );if (err <0 ) { -dev_err (dev,"failed to get IRQ: %d\n" , err); goto free_irq_domain; }
drivers/pci/controller/pci-v3-semi.c +0 -1
@@ -805,7 +805,6 @@ static int v3_pci_probe(struct platform_device *pdev)/* Get and request error IRQ resource */ irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"unable to obtain PCIv3 error IRQ\n" );return -ENODEV ; } ret = devm_request_irq(dev, irq, v3_irq, 0,
drivers/pci/controller/pci-xgene-msi.c +0 -2
@@ -478,8 +478,6 @@ static int xgene_msi_probe(struct platform_device *pdev)for (irq_index =0 ; irq_index <NR_HW_IRQS ; irq_index++) { virt_msir =platform_get_irq (pdev, irq_index);if (virt_msir <0 ) { -dev_err (&pdev->dev,"Cannot translate IRQ index %d\n" , - irq_index); rc = virt_msir; goto error; }
drivers/pci/controller/pcie-altera-msi.c +0 -1
@@ -256,7 +256,6 @@ static int altera_msi_probe(struct platform_device *pdev) msi->irq =platform_get_irq (pdev,0 );if (msi->irq <0 ) { -dev_err (&pdev->dev,"failed to map IRQ: %d\n" , msi->irq); ret = msi->irq; goto err; }
drivers/pci/controller/pcie-altera.c +0 -1
@@ -748,7 +748,6 @@ static int altera_pcie_parse_dt(struct altera_pcie *pcie)/* setup IRQ */ pcie->irq =platform_get_irq (pdev,0 );if (pcie->irq <0 ) { -dev_err (dev,"failed to get IRQ: %d\n" , pcie->irq);return pcie->irq; }
drivers/pci/controller/pcie-mobiveil.c +0 -1
@@ -454,7 +454,6 @@ static int mobiveil_pcie_parse_dt(struct mobiveil_pcie *pcie) pcie->irq =platform_get_irq (pdev,0 );if (pcie->irq <=0 ) { -dev_err (dev,"failed to map IRQ: %d\n" , pcie->irq);return -ENODEV ; }
drivers/pci/controller/pcie-rockchip-host.c +0 -3
@@ -550,7 +550,6 @@ static int rockchip_pcie_setup_irq(struct rockchip_pcie *rockchip) irq =platform_get_irq_byname (pdev,"sys" );if (irq <0 ) { -dev_err (dev,"missing sys IRQ resource\n" );return irq; }
@@ -563,7 +562,6 @@ static int rockchip_pcie_setup_irq(struct rockchip_pcie *rockchip) irq =platform_get_irq_byname (pdev,"legacy" );if (irq <0 ) { -dev_err (dev,"missing legacy IRQ resource\n" );return irq; }
@@ -573,7 +571,6 @@ static int rockchip_pcie_setup_irq(struct rockchip_pcie *rockchip) irq =platform_get_irq_byname (pdev,"client" );if (irq <0 ) { -dev_err (dev,"missing client IRQ resource\n" );return irq; }
drivers/pci/controller/pcie-tango.c +0 -1
@@ -274,7 +274,6 @@ static int tango_pcie_probe(struct platform_device *pdev) virq =platform_get_irq (pdev,1 );if (virq <=0 ) { -dev_err (dev,"Failed to map IRQ\n" );return -ENXIO ; }
drivers/pci/controller/pcie-xilinx-nwl.c +0 -5
@@ -586,7 +586,6 @@ static int nwl_pcie_enable_msi(struct nwl_pcie *pcie)/* Get msi_1 IRQ number */ msi->irq_msi1 =platform_get_irq_byname (pdev,"msi1" );if (msi->irq_msi1 <0 ) { -dev_err (dev,"failed to get IRQ#%d\n" , msi->irq_msi1); ret = -EINVAL ; goto err; }
@@ -597,7 +596,6 @@ static int nwl_pcie_enable_msi(struct nwl_pcie *pcie)/* Get msi_0 IRQ number */ msi->irq_msi0 =platform_get_irq_byname (pdev,"msi0" );if (msi->irq_msi0 <0 ) { -dev_err (dev,"failed to get IRQ#%d\n" , msi->irq_msi0); ret = -EINVAL ; goto err; }
@@ -729,8 +727,6 @@ static int nwl_pcie_bridge_init(struct nwl_pcie *pcie)/* Get misc IRQ number */ pcie->irq_misc =platform_get_irq_byname (pdev,"misc" );if (pcie->irq_misc <0 ) { -dev_err (dev,"failed to get misc IRQ %d\n" , - pcie->irq_misc);return -EINVAL ; }
@@ -798,7 +794,6 @@ static int nwl_pcie_parse_dt(struct nwl_pcie *pcie,/* Get intx IRQ number */ pcie->irq_intx =platform_get_irq_byname (pdev,"intx" );if (pcie->irq_intx <0 ) { -dev_err (dev,"failed to get intx IRQ %d\n" , pcie->irq_intx);return pcie->irq_intx; }
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c +0 -1
@@ -218,7 +218,6 @@ static int hisi_ddrc_pmu_init_irq(struct hisi_pmu *ddrc_pmu,/* Read and init IRQ */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"DDRC PMU get irq fail; irq:%d\n" , irq);return irq; }
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c +0 -1
@@ -208,7 +208,6 @@ static int hisi_hha_pmu_init_irq(struct hisi_pmu *hha_pmu,/* Read and init IRQ */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"HHA PMU get irq fail; irq:%d\n" , irq);return irq; }
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c +0 -1
@@ -207,7 +207,6 @@ static int hisi_l3c_pmu_init_irq(struct hisi_pmu *l3c_pmu,/* Read and init IRQ */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"L3C PMU get irq fail; irq:%d\n" , irq);return irq; }
drivers/perf/qcom_l2_pmu.c +0 -3
@@ -910,9 +910,6 @@ static int l2_cache_pmu_probe_cluster(struct device *dev, void *data) irq =platform_get_irq (sdev,0 );if (irq <0 ) { -dev_err (&pdev->dev, -"Failed to get valid irq for cluster %ld\n" , - fw_cluster_id);return irq; }irq_set_status_flags (irq,IRQ_NOAUTOEN );
drivers/perf/xgene_pmu.c +0 -1
@@ -1902,7 +1902,6 @@ static int xgene_pmu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return -EINVAL ; }
drivers/pinctrl/intel/pinctrl-cherryview.c +0 -1
@@ -1704,7 +1704,6 @@ static int chv_pinctrl_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get interrupt number\n" );return irq; }
drivers/pinctrl/intel/pinctrl-intel.c +0 -1
@@ -1355,7 +1355,6 @@ static int intel_pinctrl_probe(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get interrupt number\n" );return irq; }
drivers/pinctrl/pinctrl-amd.c +0 -1
@@ -862,7 +862,6 @@ static int amd_gpio_probe(struct platform_device *pdev) irq_base =platform_get_irq (pdev,0 );if (irq_base <0 ) { -dev_err (&pdev->dev,"Failed to get gpio IRQ: %d\n" , irq_base);return irq_base; }
drivers/pinctrl/pinctrl-oxnas.c +0 -1
@@ -1230,7 +1230,6 @@ static int oxnas_gpio_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"irq get failed\n" );return irq; }
drivers/pinctrl/pinctrl-pic32.c +0 -1
@@ -2223,7 +2223,6 @@ static int pic32_gpio_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"irq get failed\n" );return irq; }
drivers/pinctrl/pinctrl-stmfx.c +0 -1
@@ -609,7 +609,6 @@ static int stmfx_pinctrl_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (pctl->dev,"failed to get irq\n" );return -ENXIO ; }
drivers/pinctrl/qcom/pinctrl-msm.c +0 -1
@@ -1161,7 +1161,6 @@ int msm_pinctrl_probe(struct platform_device *pdev, pctrl->irq =platform_get_irq (pdev,0 );if (pctrl->irq <0 ) { -dev_err (&pdev->dev,"No interrupt defined for msmgpio\n" );return pctrl->irq; }
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c +0 -2
@@ -792,8 +792,6 @@ static int pm8xxx_mpp_probe(struct platform_device *pdev) pin_data[i].reg =SSBI_REG_ADDR_MPP (i); pin_data[i].irq =platform_get_irq (pdev, i);if (pin_data[i].irq <0 ) { -dev_err (&pdev->dev, -"missing interrupts for pin %d\n" , i);return pin_data[i].irq; }
drivers/platform/mellanox/mlxreg-hotplug.c +0 -2
@@ -643,8 +643,6 @@ static int mlxreg_hotplug_probe(struct platform_device *pdev) }else { priv->irq =platform_get_irq (pdev,0 );if (priv->irq <0 ) { -dev_err (&pdev->dev,"Failed to get platform irq: %d\n" , - priv->irq);return priv->irq; } }
drivers/platform/x86/intel_bxtwc_tmu.c +0 -1
@@ -62,7 +62,6 @@ static int bxt_wcove_tmu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"invalid irq %d\n" , irq);return irq; }
drivers/platform/x86/intel_int0002_vgpio.c +0 -1
@@ -167,7 +167,6 @@ static int int0002_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Error getting IRQ: %d\n" , irq);return irq; }
drivers/platform/x86/intel_pmc_ipc.c +0 -1
@@ -937,7 +937,6 @@ static int ipc_plat_probe(struct platform_device *pdev) ipcdev.irq =platform_get_irq (pdev,0 );if (ipcdev.irq <0 ) { -dev_err (&pdev->dev,"Failed to get irq\n" );return -EINVAL ; }
drivers/power/supply/88pm860x_battery.c +0 -2
@@ -920,13 +920,11 @@ static int pm860x_battery_probe(struct platform_device *pdev) info->irq_cc =platform_get_irq (pdev,0 );if (info->irq_cc <=0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; } info->irq_batt =platform_get_irq (pdev,1 );if (info->irq_batt <=0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return -EINVAL ; }
drivers/power/supply/axp288_charger.c +0 -1
@@ -826,7 +826,6 @@ static int axp288_charger_probe(struct platform_device *pdev)for (i =0 ; i <CHRG_INTR_END ; i++) { pirq =platform_get_irq (info->pdev, i);if (pirq <0 ) { -dev_err (&pdev->dev,"Failed to get IRQ: %d\n" , pirq);return pirq; } info->irq[i] =regmap_irq_get_virq (info->regmap_irqc, pirq);
drivers/power/supply/bd70528-charger.c +0 -2
@@ -169,8 +169,6 @@ static int bd70528_get_irqs(struct platform_device *pdev,for (i =0 ; i <ARRAY_SIZE (bd70528_chg_irqs); i++) { irq =platform_get_irq_byname (pdev, bd70528_chg_irqs[i].n);if (irq <0 ) { -dev_err (&pdev->dev,"Bad IRQ information for %s (%d)\n" , - bd70528_chg_irqs[i].n, irq);return irq; } ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
drivers/power/supply/da9150-charger.c +0 -2
@@ -467,7 +467,6 @@ static int da9150_charger_register_irq(struct platform_device *pdev, irq =platform_get_irq_byname (pdev, irq_name);if (irq <0 ) { -dev_err (dev,"Failed to get IRQ CHG_STATUS: %d\n" , irq);return irq; }
@@ -488,7 +487,6 @@ static void da9150_charger_unregister_irq(struct platform_device *pdev, irq =platform_get_irq_byname (pdev, irq_name);if (irq <0 ) { -dev_err (dev,"Failed to get IRQ CHG_STATUS: %d\n" , irq);return ; }
drivers/power/supply/da9150-fg.c +0 -1
@@ -514,7 +514,6 @@ static int da9150_fg_probe(struct platform_device *pdev)/* Register IRQ */ irq =platform_get_irq_byname (pdev,"FG" );if (irq <0 ) { -dev_err (dev,"Failed to get IRQ FG: %d\n" , irq); ret = irq; goto irq_fail; }
drivers/power/supply/goldfish_battery.c +0 -1
@@ -222,7 +222,6 @@ static int goldfish_battery_probe(struct platform_device *pdev) data->irq =platform_get_irq (pdev,0 );if (data->irq <0 ) { -dev_err (&pdev->dev,"platform_get_irq failed\n" );return -ENODEV ; }
drivers/power/supply/jz4740-battery.c +0 -1
@@ -259,7 +259,6 @@ static int jz_battery_probe(struct platform_device *pdev) jz_battery->irq =platform_get_irq (pdev,0 );if (jz_battery->irq <0 ) { -dev_err (&pdev->dev,"Failed to get platform irq: %d\n" , ret);return jz_battery->irq; }
drivers/power/supply/qcom_smbb.c +0 -2
@@ -930,8 +930,6 @@ static int smbb_charger_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev, smbb_charger_irqs[i].name);if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq '%s'\n" , - smbb_charger_irqs[i].name);return irq; }
drivers/power/supply/sc27xx_fuel_gauge.c +0 -1
@@ -1031,7 +1031,6 @@ static int sc27xx_fgu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource specified\n" );return irq; }
drivers/pwm/pwm-sti.c +0 -1
@@ -565,7 +565,6 @@ static int sti_pwm_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to obtain IRQ\n" );return irq; }
drivers/regulator/da9062-regulator.c +0 -1
@@ -1033,7 +1033,6 @@ static int da9062_regulator_probe(struct platform_device *pdev)/* LDOs overcurrent event support */ irq =platform_get_irq_byname (pdev,"LDO_LIM" );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get IRQ.\n" );return irq; } regulators->irq_ldo_lim = irq;
drivers/regulator/da9063-regulator.c +0 -1
@@ -864,7 +864,6 @@ static int da9063_regulator_probe(struct platform_device *pdev)/* LDOs overcurrent event support */ irq =platform_get_irq_byname (pdev,"LDO_LIM" );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get IRQ.\n" );return irq; }
drivers/remoteproc/da8xx_remoteproc.c +0 -1
@@ -250,7 +250,6 @@ static int da8xx_rproc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"platform_get_irq(pdev, 0) error: %d\n" , irq);return irq; }
drivers/remoteproc/keystone_remoteproc.c +0 -4
@@ -424,16 +424,12 @@ static int keystone_rproc_probe(struct platform_device *pdev) ksproc->irq_ring =platform_get_irq_byname (pdev,"vring" );if (ksproc->irq_ring <0 ) { ret = ksproc->irq_ring; -dev_err (dev,"failed to get vring interrupt, status = %d\n" , - ret); goto disable_clk; } ksproc->irq_fault =platform_get_irq_byname (pdev,"exception" );if (ksproc->irq_fault <0 ) { ret = ksproc->irq_fault; -dev_err (dev,"failed to get exception interrupt, status = %d\n" , - ret); goto disable_clk; }
drivers/remoteproc/qcom_q6v5.c +0 -20
@@ -188,10 +188,6 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, q6v5->wdog_irq =platform_get_irq_byname (pdev,"wdog" );if (q6v5->wdog_irq <0 ) { -if (q6v5->wdog_irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"failed to retrieve wdog IRQ: %d\n" , - q6v5->wdog_irq);return q6v5->wdog_irq; }
@@ -206,10 +202,6 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, q6v5->fatal_irq =platform_get_irq_byname (pdev,"fatal" );if (q6v5->fatal_irq <0 ) { -if (q6v5->fatal_irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"failed to retrieve fatal IRQ: %d\n" , - q6v5->fatal_irq);return q6v5->fatal_irq; }
@@ -224,10 +216,6 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, q6v5->ready_irq =platform_get_irq_byname (pdev,"ready" );if (q6v5->ready_irq <0 ) { -if (q6v5->ready_irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"failed to retrieve ready IRQ: %d\n" , - q6v5->ready_irq);return q6v5->ready_irq; }
@@ -242,10 +230,6 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, q6v5->handover_irq =platform_get_irq_byname (pdev,"handover" );if (q6v5->handover_irq <0 ) { -if (q6v5->handover_irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"failed to retrieve handover IRQ: %d\n" , - q6v5->handover_irq);return q6v5->handover_irq; }
@@ -261,10 +245,6 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev, q6v5->stop_irq =platform_get_irq_byname (pdev,"stop-ack" );if (q6v5->stop_irq <0 ) { -if (q6v5->stop_irq != -EPROBE_DEFER ) -dev_err (&pdev->dev, -"failed to retrieve stop-ack IRQ: %d\n" , - q6v5->stop_irq);return q6v5->stop_irq; }
drivers/rtc/rtc-88pm80x.c +0 -1
@@ -264,7 +264,6 @@ static int pm80x_rtc_probe(struct platform_device *pdev)return -ENOMEM ; info->irq =platform_get_irq (pdev,0 );if (info->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" ); ret = -EINVAL ; goto out; }
drivers/rtc/rtc-88pm860x.c +0 -1
@@ -329,7 +329,6 @@ static int pm860x_rtc_probe(struct platform_device *pdev)return -ENOMEM ; info->irq =platform_get_irq (pdev,0 );if (info->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource!\n" );return info->irq; }
drivers/rtc/rtc-ac100.c +0 -1
@@ -579,7 +579,6 @@ static int ac100_rtc_probe(struct platform_device *pdev) chip->irq =platform_get_irq (pdev,0 );if (chip->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return chip->irq; }
drivers/rtc/rtc-armada38x.c +0 -1
@@ -532,7 +532,6 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev) rtc->irq =platform_get_irq (pdev,0 );if (rtc->irq <0 ) { -dev_err (&pdev->dev,"no irq\n" );return rtc->irq; }
drivers/rtc/rtc-asm9260.c +0 -1
@@ -258,7 +258,6 @@ static int asm9260_rtc_probe(struct platform_device *pdev) irq_alarm =platform_get_irq (pdev,0 );if (irq_alarm <0 ) { -dev_err (dev,"No alarm IRQ resource defined\n" );return irq_alarm; }
drivers/rtc/rtc-at91rm9200.c +0 -1
@@ -379,7 +379,6 @@ static int __init at91_rtc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource defined\n" );return -ENXIO ; }
drivers/rtc/rtc-at91sam9.c +0 -1
@@ -343,7 +343,6 @@ static int at91_rtc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get interrupt resource\n" );return irq; }
drivers/rtc/rtc-bd70528.c +0 -1
@@ -418,7 +418,6 @@ static int bd70528_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"bd70528-rtc-alm" );if (irq <0 ) { -dev_err (&pdev->dev,"Failed to get irq\n" );return irq; }
drivers/rtc/rtc-davinci.c +0 -1
@@ -478,7 +478,6 @@ static int __init davinci_rtc_probe(struct platform_device *pdev) davinci_rtc->irq =platform_get_irq (pdev,0 );if (davinci_rtc->irq <0 ) { -dev_err (dev,"no RTC irq\n" );return davinci_rtc->irq; }
drivers/rtc/rtc-jz4740.c +0 -1
@@ -324,7 +324,6 @@ static int jz4740_rtc_probe(struct platform_device *pdev) rtc->irq =platform_get_irq (pdev,0 );if (rtc->irq <0 ) { -dev_err (&pdev->dev,"Failed to get platform irq\n" );return -ENOENT ; }
drivers/rtc/rtc-max77686.c +0 -2
@@ -674,8 +674,6 @@ static int max77686_init_rtc_regmap(struct max77686_rtc_info *info) info->rtc_irq =platform_get_irq (pdev,0 );if (info->rtc_irq <0 ) { -dev_err (info->dev,"Failed to get rtc interrupts: %d\n" , - info->rtc_irq);return info->rtc_irq; } }else {
drivers/rtc/rtc-mt7622.c +0 -1
@@ -329,7 +329,6 @@ static int mtk_rtc_probe(struct platform_device *pdev) hw->irq =platform_get_irq (pdev,0 );if (hw->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" ); ret = hw->irq; goto err; }
drivers/rtc/rtc-pic32.c +0 -1
@@ -309,7 +309,6 @@ static int pic32_rtc_probe(struct platform_device *pdev) pdata->alarm_irq =platform_get_irq (pdev,0 );if (pdata->alarm_irq <0 ) { -dev_err (&pdev->dev,"no irq for alarm\n" );return pdata->alarm_irq; }
drivers/rtc/rtc-pm8xxx.c +0 -1
@@ -469,7 +469,6 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) rtc_dd->rtc_alarm_irq =platform_get_irq (pdev,0 );if (rtc_dd->rtc_alarm_irq <0 ) { -dev_err (&pdev->dev,"Alarm IRQ resource absent!\n" );return -ENXIO ; }
drivers/rtc/rtc-puv3.c +0 -2
@@ -187,13 +187,11 @@ static int puv3_rtc_probe(struct platform_device *pdev)/* find the IRQs */ puv3_rtc_tickno =platform_get_irq (pdev,1 );if (puv3_rtc_tickno <0 ) { -dev_err (&pdev->dev,"no irq for rtc tick\n" );return -ENOENT ; } puv3_rtc_alarmno =platform_get_irq (pdev,0 );if (puv3_rtc_alarmno <0 ) { -dev_err (&pdev->dev,"no irq for alarm\n" );return -ENOENT ; }
drivers/rtc/rtc-pxa.c +0 -2
@@ -325,12 +325,10 @@ static int __init pxa_rtc_probe(struct platform_device *pdev) sa1100_rtc->irq_1hz =platform_get_irq (pdev,0 );if (sa1100_rtc->irq_1hz <0 ) { -dev_err (dev,"No 1Hz IRQ resource defined\n" );return -ENXIO ; } sa1100_rtc->irq_alarm =platform_get_irq (pdev,1 );if (sa1100_rtc->irq_alarm <0 ) { -dev_err (dev,"No alarm IRQ resource defined\n" );return -ENXIO ; }
drivers/rtc/rtc-rk808.c +0 -3
@@ -435,9 +435,6 @@ static int rk808_rtc_probe(struct platform_device *pdev) rk808_rtc->irq =platform_get_irq (pdev,0 );if (rk808_rtc->irq <0 ) { -if (rk808_rtc->irq != -EPROBE_DEFER ) -dev_err (&pdev->dev,"Wake up is not possible as irq = %d\n" , - rk808_rtc->irq);return rk808_rtc->irq; }
drivers/rtc/rtc-s3c.c +0 -2
@@ -454,7 +454,6 @@ static int s3c_rtc_probe(struct platform_device *pdev)/* find the IRQs */ info->irq_tick =platform_get_irq (pdev,1 );if (info->irq_tick <0 ) { -dev_err (&pdev->dev,"no irq for rtc tick\n" );return info->irq_tick; }
@@ -471,7 +470,6 @@ static int s3c_rtc_probe(struct platform_device *pdev) info->irq_alarm =platform_get_irq (pdev,0 );if (info->irq_alarm <0 ) { -dev_err (&pdev->dev,"no irq for alarm\n" );return info->irq_alarm; }
drivers/rtc/rtc-sc27xx.c +0 -1
@@ -615,7 +615,6 @@ static int sprd_rtc_probe(struct platform_device *pdev) rtc->irq =platform_get_irq (pdev,0 );if (rtc->irq <0 ) { -dev_err (&pdev->dev,"failed to get RTC irq number\n" );return rtc->irq; }
drivers/rtc/rtc-spear.c +0 -1
@@ -359,7 +359,6 @@ static int spear_rtc_probe(struct platform_device *pdev)/* alarm irqs */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no update irq?\n" );return irq; }
drivers/rtc/rtc-stm32.c +0 -1
@@ -776,7 +776,6 @@ static int stm32_rtc_probe(struct platform_device *pdev) rtc->irq_alarm =platform_get_irq (pdev,0 );if (rtc->irq_alarm <=0 ) { -dev_err (&pdev->dev,"no alarm irq\n" ); ret = rtc->irq_alarm; goto err; }
drivers/rtc/rtc-sun6i.c +0 -1
@@ -611,7 +611,6 @@ static int sun6i_rtc_probe(struct platform_device *pdev) chip->irq =platform_get_irq (pdev,0 );if (chip->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return chip->irq; }
drivers/rtc/rtc-sunxi.c +0 -1
@@ -443,7 +443,6 @@ static int sunxi_rtc_probe(struct platform_device *pdev) chip->irq =platform_get_irq (pdev,0 );if (chip->irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return chip->irq; } ret = devm_request_irq(&pdev->dev, chip->irq, sunxi_rtc_alarmirq,
drivers/rtc/rtc-tegra.c +0 -1
@@ -291,7 +291,6 @@ static int tegra_rtc_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <=0 ) { -dev_err (&pdev->dev,"failed to get platform IRQ: %d\n" , ret);return ret; }
drivers/rtc/rtc-vt8500.c +0 -1
@@ -213,7 +213,6 @@ static int vt8500_rtc_probe(struct platform_device *pdev) vt8500_rtc->irq_alarm =platform_get_irq (pdev,0 );if (vt8500_rtc->irq_alarm <0 ) { -dev_err (&pdev->dev,"No alarm IRQ resource defined\n" );return vt8500_rtc->irq_alarm; }
drivers/rtc/rtc-xgene.c +0 -1
@@ -158,7 +158,6 @@ static int xgene_rtc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No IRQ resource\n" );return irq; } ret = devm_request_irq(&pdev->dev, irq, xgene_rtc_interrupt, 0,
drivers/rtc/rtc-zynqmp.c +0 -2
@@ -219,7 +219,6 @@ static int xlnx_rtc_probe(struct platform_device *pdev) xrtcdev->alarm_irq =platform_get_irq_byname (pdev,"alarm" );if (xrtcdev->alarm_irq <0 ) { -dev_err (&pdev->dev,"no irq resource\n" );return xrtcdev->alarm_irq; } ret = devm_request_irq(&pdev->dev, xrtcdev->alarm_irq,
@@ -232,7 +231,6 @@ static int xlnx_rtc_probe(struct platform_device *pdev) xrtcdev->sec_irq =platform_get_irq_byname (pdev,"sec" );if (xrtcdev->sec_irq <0 ) { -dev_err (&pdev->dev,"no irq resource\n" );return xrtcdev->sec_irq; } ret = devm_request_irq(&pdev->dev, xrtcdev->sec_irq,
drivers/scsi/ufs/ufshcd-pltfrm.c +0 -1
@@ -404,7 +404,6 @@ int ufshcd_pltfrm_init(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"IRQ resource not available\n" ); err = -ENODEV ; goto out; }
drivers/soc/fsl/qbman/bman_portal.c +0 -1
@@ -136,7 +136,6 @@ static int bman_portal_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"Can't get %pOF IRQ'\n" , node); goto err_ioremap1; } pcfg->irq = irq;
drivers/soc/fsl/qbman/qman_portal.c +0 -1
@@ -276,7 +276,6 @@ static int qman_portal_probe(struct platform_device *pdev) pcfg->cpu =-1 ; irq =platform_get_irq (pdev,0 );if (irq <=0 ) { -dev_err (dev,"Can't get %pOF IRQ\n" , node); goto err_ioremap1; } pcfg->irq = irq;
drivers/soc/qcom/smp2p.c +0 -1
@@ -475,7 +475,6 @@ static int qcom_smp2p_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"unable to acquire smp2p interrupt\n" );return irq; }
drivers/spi/atmel-quadspi.c +0 -1
@@ -526,7 +526,6 @@ static int atmel_qspi_probe(struct platform_device *pdev)/* Request the IRQ */ irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"missing IRQ\n" ); err = irq; goto disable_qspick; }
drivers/spi/spi-armada-3700.c +0 -1
@@ -864,7 +864,6 @@ static int a3700_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"could not get irq: %d\n" , irq); ret = -ENXIO ; goto error; }
drivers/spi/spi-bcm2835.c +0 -1
@@ -1015,7 +1015,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev) bs->irq =platform_get_irq (pdev,0 );if (bs->irq <=0 ) { -dev_err (&pdev->dev,"could not get IRQ: %d\n" , bs->irq); err = bs->irq ? bs->irq : -ENODEV ; goto out_controller_put; }
drivers/spi/spi-bcm2835aux.c +0 -1
@@ -540,7 +540,6 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev) bs->irq =platform_get_irq (pdev,0 );if (bs->irq <=0 ) { -dev_err (&pdev->dev,"could not get IRQ: %d\n" , bs->irq); err = bs->irq ? bs->irq : -ENODEV ; goto out_master_put; }
drivers/spi/spi-bcm63xx-hsspi.c +0 -1
@@ -339,7 +339,6 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no irq: %d\n" , irq);return irq; }
drivers/spi/spi-bcm63xx.c +0 -1
@@ -521,7 +521,6 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"no irq: %d\n" , irq);return irq; }
drivers/spi/spi-cadence.c +0 -1
@@ -540,7 +540,6 @@ static int cdns_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <=0 ) { ret = -ENXIO ; -dev_err (&pdev->dev,"irq number is invalid\n" ); goto clk_dis_all; }
drivers/spi/spi-dw-mmio.c +0 -1
@@ -159,7 +159,6 @@ static int dw_spi_mmio_probe(struct platform_device *pdev) dws->irq =platform_get_irq (pdev,0 );if (dws->irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" );return dws->irq;/* -ENXIO */ }
drivers/spi/spi-efm32.c +0 -1
@@ -401,7 +401,6 @@ static int efm32_spi_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <=0 ) { -dev_err (&pdev->dev,"failed to get rx irq (%d)\n" , ret); goto err; }
drivers/spi/spi-ep93xx.c +0 -1
@@ -657,7 +657,6 @@ static int ep93xx_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq resources\n" );return -EBUSY ; }
drivers/spi/spi-fsl-dspi.c +0 -1
@@ -1105,7 +1105,6 @@ static int dspi_probe(struct platform_device *pdev)dspi_init (dspi); dspi->irq =platform_get_irq (pdev,0 );if (dspi->irq <0 ) { -dev_err (&pdev->dev,"can't get platform irq\n" ); ret = dspi->irq; goto out_clk_put; }
drivers/spi/spi-fsl-qspi.c +0 -1
@@ -861,7 +861,6 @@ static int fsl_qspi_probe(struct platform_device *pdev)/* find the irq */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"failed to get the irq: %d\n" , ret); goto err_disable_clk; }
drivers/spi/spi-geni-qcom.c +0 -1
@@ -540,7 +540,6 @@ static int spi_geni_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Err getting IRQ %d\n" , irq);return irq; }
drivers/spi/spi-lantiq-ssc.c +0 -3
@@ -820,19 +820,16 @@ static int lantiq_ssc_probe(struct platform_device *pdev) rx_irq =platform_get_irq_byname (pdev,LTQ_SPI_RX_IRQ_NAME );if (rx_irq <0 ) { -dev_err (dev,"failed to get %s\n" ,LTQ_SPI_RX_IRQ_NAME );return -ENXIO ; } tx_irq =platform_get_irq_byname (pdev,LTQ_SPI_TX_IRQ_NAME );if (tx_irq <0 ) { -dev_err (dev,"failed to get %s\n" ,LTQ_SPI_TX_IRQ_NAME );return -ENXIO ; } err_irq =platform_get_irq_byname (pdev,LTQ_SPI_ERR_IRQ_NAME );if (err_irq <0 ) { -dev_err (dev,"failed to get %s\n" ,LTQ_SPI_ERR_IRQ_NAME );return -ENXIO ; }
drivers/spi/spi-mt65xx.c +0 -1
@@ -664,7 +664,6 @@ static int mtk_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq (%d)\n" , irq); ret = irq; goto err_put_master; }
drivers/spi/spi-npcm-pspi.c +0 -1
@@ -388,7 +388,6 @@ static int npcm_pspi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" ); ret = irq; goto out_disable_clk; }
drivers/spi/spi-nuc900.c +0 -1
@@ -367,7 +367,6 @@ static int nuc900_spi_probe(struct platform_device *pdev) hw->irq =platform_get_irq (pdev,0 );if (hw->irq <0 ) { -dev_err (&pdev->dev,"No IRQ specified\n" ); err = -ENOENT ; goto err_pdata; }
drivers/spi/spi-nxp-fspi.c +0 -1
@@ -1008,7 +1008,6 @@ static int nxp_fspi_probe(struct platform_device *pdev)/* find the irq */ ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"failed to get the irq: %d\n" , ret); goto err_disable_clk; }
drivers/spi/spi-pic32-sqi.c +0 -1
@@ -590,7 +590,6 @@ static int pic32_sqi_probe(struct platform_device *pdev)/* irq */ sqi->irq =platform_get_irq (pdev,0 );if (sqi->irq <0 ) { -dev_err (&pdev->dev,"no irq found\n" ); ret = sqi->irq; goto err_free_master; }
drivers/spi/spi-pic32.c +0 -3
@@ -712,19 +712,16 @@ static int pic32_spi_hw_probe(struct platform_device *pdev,/* get irq resources: err-irq, rx-irq, tx-irq */ pic32s->fault_irq =platform_get_irq_byname (pdev,"fault" );if (pic32s->fault_irq <0 ) { -dev_err (&pdev->dev,"fault-irq not found\n" );return pic32s->fault_irq; } pic32s->rx_irq =platform_get_irq_byname (pdev,"rx" );if (pic32s->rx_irq <0 ) { -dev_err (&pdev->dev,"rx-irq not found\n" );return pic32s->rx_irq; } pic32s->tx_irq =platform_get_irq_byname (pdev,"tx" );if (pic32s->tx_irq <0 ) { -dev_err (&pdev->dev,"tx-irq not found\n" );return pic32s->tx_irq; }
drivers/spi/spi-qcom-qspi.c +0 -1
@@ -455,7 +455,6 @@ static int qcom_qspi_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (dev,"Failed to get irq %d\n" , ret); goto exit_probe_master_put; } ret = devm_request_irq(dev, ret, qcom_qspi_irq,
drivers/spi/spi-s3c24xx.c +0 -1
@@ -545,7 +545,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) hw->irq =platform_get_irq (pdev,0 );if (hw->irq <0 ) { -dev_err (&pdev->dev,"No IRQ specified\n" ); err = -ENOENT ; goto err_no_pdata; }
drivers/spi/spi-sh-msiof.c +0 -1
@@ -1346,7 +1346,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) i =platform_get_irq (pdev,0 );if (i <0 ) { -dev_err (&pdev->dev,"cannot get IRQ\n" ); ret = i; goto err1; }
drivers/spi/spi-sh.c +0 -1
@@ -438,7 +438,6 @@ static int spi_sh_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"platform_get_irq error: %d\n" , irq);return irq; }
drivers/spi/spi-sifive.c +0 -1
@@ -323,7 +323,6 @@ static int sifive_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Unable to find interrupt\n" ); ret = irq; goto put_master; }
drivers/spi/spi-slave-mt27xx.c +0 -1
@@ -410,7 +410,6 @@ static int mtk_spi_slave_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq (%d)\n" , irq); ret = irq; goto err_put_ctlr; }
drivers/spi/spi-sprd.c +0 -1
@@ -844,7 +844,6 @@ static int sprd_spi_irq_init(struct platform_device *pdev, struct sprd_spi *ss) ss->irq =platform_get_irq (pdev,0 );if (ss->irq <0 ) { -dev_err (&pdev->dev,"failed to get irq resource\n" );return ss->irq; }
drivers/spi/spi-stm32-qspi.c +0 -2
@@ -571,8 +571,6 @@ static int stm32_qspi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -if (irq != -EPROBE_DEFER ) -dev_err (dev,"IRQ error missing or invalid\n" );return irq; }
drivers/spi/spi-sun4i.c +0 -1
@@ -449,7 +449,6 @@ static int sun4i_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No spi IRQ specified\n" ); ret = -ENXIO ; goto err_free_master; }
drivers/spi/spi-sun6i.c +0 -1
@@ -456,7 +456,6 @@ static int sun6i_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"No spi IRQ specified\n" ); ret = -ENXIO ; goto err_free_master; }
drivers/spi/spi-synquacer.c +0 -2
@@ -670,7 +670,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) rx_irq =platform_get_irq (pdev,0 );if (rx_irq <=0 ) { -dev_err (&pdev->dev,"get rx_irq failed (%d)\n" , rx_irq); ret = rx_irq; goto put_spi; }
@@ -685,7 +684,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) tx_irq =platform_get_irq (pdev,1 );if (tx_irq <=0 ) { -dev_err (&pdev->dev,"get tx_irq failed (%d)\n" , tx_irq); ret = tx_irq; goto put_spi; }
drivers/spi/spi-ti-qspi.c +0 -1
@@ -717,7 +717,6 @@ static int ti_qspi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no irq resource?\n" ); ret = irq; goto free_master; }
drivers/spi/spi-uniphier.c +0 -1
@@ -454,7 +454,6 @@ static int uniphier_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" ); ret = irq; goto out_disable_clk; }
drivers/spi/spi-xlp.c +0 -1
@@ -385,7 +385,6 @@ static int xlp_spi_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"no IRQ resource found: %d\n" , irq);return irq; } err = devm_request_irq(&pdev->dev, irq, xlp_spi_interrupt, 0,
drivers/spi/spi-zynq-qspi.c +0 -1
@@ -671,7 +671,6 @@ static int zynq_qspi_probe(struct platform_device *pdev) xqspi->irq =platform_get_irq (pdev,0 );if (xqspi->irq <=0 ) { ret = -ENXIO ; -dev_err (&pdev->dev,"irq resource not found\n" ); goto remove_master; } ret = devm_request_irq(&pdev->dev, xqspi->irq, zynq_qspi_irq,
drivers/spi/spi-zynqmp-gqspi.c +0 -1
@@ -1077,7 +1077,6 @@ static int zynqmp_qspi_probe(struct platform_device *pdev) xqspi->irq =platform_get_irq (pdev,0 );if (xqspi->irq <=0 ) { ret = -ENXIO ; -dev_err (dev,"irq resource not found\n" ); goto clk_dis_all; } ret = devm_request_irq(&pdev->dev, xqspi->irq, zynqmp_qspi_irq,
drivers/staging/emxx_udc/emxx_udc.c +0 -1
@@ -3095,7 +3095,6 @@ static int nbu2ss_drv_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get IRQ\n" );return irq; } status = devm_request_irq(&pdev->dev, irq, _nbu2ss_udc_irq,
drivers/staging/goldfish/goldfish_audio.c +0 -1
@@ -303,7 +303,6 @@ static int goldfish_audio_probe(struct platform_device *pdev) data->irq =platform_get_irq (pdev,0 );if (data->irq <0 ) { -dev_err (&pdev->dev,"platform_get_irq failed\n" );return -ENODEV ; } data->buffer_virt = dmam_alloc_coherent(&pdev->dev,
drivers/staging/media/allegro-dvt/allegro-core.c +0 -1
@@ -2948,7 +2948,6 @@ static int allegro_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get irq resource\n" );return irq; } ret = devm_request_threaded_irq(&pdev->dev, irq,
drivers/staging/media/hantro/hantro_drv.c +0 -1
@@ -734,7 +734,6 @@ static int hantro_probe(struct platform_device *pdev) irq =platform_get_irq_byname (vpu->pdev, irq_name);if (irq <=0 ) { -dev_err (vpu->dev,"Could not get %s IRQ.\n" , irq_name);return -ENXIO ; }
drivers/staging/media/imx/imx7-media-csi.c +0 -1
@@ -1195,7 +1195,6 @@ static int imx7_csi_probe(struct platform_device *pdev) csi->irq =platform_get_irq (pdev,0 );if (csi->irq <0 ) { -dev_err (dev,"Missing platform resources data\n" );return csi->irq; }
drivers/staging/media/imx/imx7-mipi-csis.c +0 -1
@@ -976,7 +976,6 @@ static int mipi_csis_probe(struct platform_device *pdev) state->irq =platform_get_irq (pdev,0 );if (state->irq <0 ) { -dev_err (dev,"Failed to get irq\n" );return state->irq; }
drivers/staging/media/meson/vdec/esparser.c +0 -1
@@ -302,7 +302,6 @@ int esparser_init(struct platform_device *pdev, struct amvdec_core *core) irq =platform_get_irq_byname (pdev,"esparser" );if (irq <0 ) { -dev_err (dev,"Failed getting ESPARSER IRQ from dtb\n" );
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus_hw.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/staging/ralink-gdma/ralink-gdma.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/thermal/broadcom/brcmstb_thermal.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/thermal/ti-soc-thermal/ti-bandgap.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/tty/serial/8250/8250_bcm2835aux.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/tty/serial/8250/8250_uniphier.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/aspeed-vhub/core.c +0 -1
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c +0 -1
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c +0 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
Sent by a computer through tubes
Part of the diff is not shown here. View the raw message.
Re: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
Quoted 25 lines · Stephen Boyd
We don't need
dev_err()messages whenplatform_get_irq()fails now thatplatform_get_irq()prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.// <smpl>
@@
expression ret;
structplatform_device*E;
@@ret =
(platform_get_irq(E, ...)
|platform_get_irq_byname(E, ...)
);if ( \( ret < 0 \| ret <= 0 \) )
{
((quoted diff) +0
-4-if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... }
Quoted 8 lines
|
...
-dev_err(...);
)
...
}
// </smpl>
Can you teach it to remove curly braces when it's appropriate? (see below for examples)
Quoted 10 lines
drivers/i2c/busses/i2c-cht-wc.c | 1 -drivers/mfd/intel_soc_pmic_bxtwc.c | 1 -drivers/pinctrl/intel/pinctrl-cherryview.c | 1 - drivers/pinctrl/intel/pinctrl-intel.c | 1 -drivers/platform/x86/intel_bxtwc_tmu.c | 1 - drivers/platform/x86/intel_int0002_vgpio.c | 1 - drivers/platform/x86/intel_pmc_ipc.c | 1 -
Can you split this on per subsystem level?
after addressing above.
drivers/i2c/busses/i2c-cht-wc.c static int cht_wc_i2c_adap_i2c_probe(struct platform_device *pdev) · line 274
Quoted 11 lines
drivers/i2c/busses/i2c-cht-wc.c +0
-1@@ -270,7 +270,6 @@ static int cht_wc_i2c_adap_i2c_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Error missing irq resource\n" );return -EINVAL ; }
No need for curly braces.
drivers/mfd/intel_soc_pmic_bxtwc.c static int bxtwc_probe(struct platform_device *pdev) · line 456
Quoted 12 lines
drivers/mfd/intel_soc_pmic_bxtwc.c +0
-1@@ -451,7 +451,6 @@ static int bxtwc_probe(struct platform_device *pdev) ret =platform_get_irq (pdev,0 );if (ret <0 ) { -dev_err (&pdev->dev,"Invalid IRQ\n" );return ret; } pmic->irq = ret;
Ditto.
Quoted 17 lines
drivers/pinctrl/intel/pinctrl-cherryview.c +0
-1@@ -1704,7 +1704,6 @@ static int chv_pinctrl_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get interrupt number\n" );return irq; }drivers/pinctrl/intel/pinctrl-intel.c +0
-0
drivers/pinctrl/intel/pinctrl-intel.c static int intel_pinctrl_probe(struct platform_device *pdev, · line 1360
Quoted 7 lines
drivers/pinctrl/intel/pinctrl-intel.c +0
-1@@ -1355,7 +1355,6 @@ static int intel_pinctrl_probe(struct platform_device *pdev, irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"failed to get interrupt number\n" );return irq; }
Ditto.
Quoted 29 lines
drivers/platform/x86/intel_bxtwc_tmu.c +0
-1@@ -62,7 +62,6 @@ static int bxt_wcove_tmu_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"invalid irq %d\n" , irq);return irq; }drivers/platform/x86/intel_int0002_vgpio.c +0
-1@@ -167,7 +167,6 @@ static int int0002_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"Error getting IRQ: %d\n" , irq);return irq; }drivers/platform/x86/intel_pmc_ipc.c +0
-0
drivers/platform/x86/intel_pmc_ipc.c static int ipc_plat_probe(struct platform_device *pdev) · line 942
Quoted 7 lines
drivers/platform/x86/intel_pmc_ipc.c +0
-1@@ -937,7 +937,6 @@ static int ipc_plat_probe(struct platform_device *pdev) ipcdev.irq =platform_get_irq (pdev,0 );if (ipcdev.irq <0 ) { -dev_err (&pdev->dev,"Failed to get irq\n" );return -EINVAL ; }
Ditto.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
Quoting Andy Shevchenko (2019-07-23 11:31:54)
Quoted 29 lines · Stephen Boyd
Quoted 28 lines
We don't need
dev_err()messages whenplatform_get_irq()fails now thatplatform_get_irq()prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.// <smpl>
@@
expression ret;
structplatform_device*E;
@@ret =
(platform_get_irq(E, ...)
|platform_get_irq_byname(E, ...)
);if ( \( ret < 0 \| ret <= 0 \) )
{
((quoted diff) +0
-4-if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... }|
...
-dev_err(...);
Quoted 8 lines
Quoted 5 lines
)
...
}
// </smpl>Can you teach it to remove curly braces when it's appropriate? (see below for examples)
I don't know if that works. I was hoping that checkpatch might do that for me with --fix but it doesn't seem to warn about anything so I guess not. Is there some sort of tidy script I can run on my patches to do this?
Quoted 8 lines
Quoted 7 lines
drivers/i2c/busses/i2c-cht-wc.c | 1 -drivers/mfd/intel_soc_pmic_bxtwc.c | 1 -drivers/pinctrl/intel/pinctrl-cherryview.c | 1 - drivers/pinctrl/intel/pinctrl-intel.c | 1 -
Quoted 8 lines
Quoted 3 lines
drivers/platform/x86/intel_bxtwc_tmu.c | 1 - drivers/platform/x86/intel_int0002_vgpio.c | 1 - drivers/platform/x86/intel_pmc_ipc.c | 1 -Can you split this on per subsystem level?
Reviewed-by Andy Shevchenko <[email protected]>after addressing above.
It depends on the previous patch to make behavior match, so maybe it doesn't matter because it will go through one tree instead of many? Either way I'm fine, I just don't want to spend the time on it until a potential maintainer accepts or rejects it because of this.
Re: [v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
Quoted 1 line
Quoted 1 line
Quoted 1 line
struct
platform_device*E;
How much does this specification matter for the parameters of the mentioned functions (in the SmPL script)?
Will the selection of function names be sufficient for the discussed source code search pattern?
Quoted 4 lines
Quoted 2 lines
Can you teach it to remove curly braces when it's appropriate? (see below for examples)
I don't know if that works.
Such an adjustment depends on additional development efforts.
Quoted 1 line
Is there some sort of tidy script I can run on my patches to do this?
You can add corresponding case distinctions to your transformation approach for the semantic patch language (on demand), can't you?
Regards,
Markus
Rob Herring
reviewerRe: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
In reply to Stephen BoydQuoted 4 lines · Stephen Boyd
We don't need
dev_err()messages whenplatform_get_irq()fails now thatplatform_get_irq()prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.
Nice. Would be nice to see this for other commonly called functions in probe though we have deal with cases of failure being okay.
Quoted 21 lines
// <smpl>
@@
expression ret;
structplatform_device*E;
@@ret =
(platform_get_irq(E, ...)
|platform_get_irq_byname(E, ...)
);if ( \( ret < 0 \| ret <= 0 \) )
{
((quoted diff) +0
-4-if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... }
Quoted 3 lines
|
...
-dev_err(...);
What about cases of pr_err, pr_warn, etc.? And the subsystem specific prints like edac_printk and DRM_ERROR/DRM_DEV_ERROR.
There's also some cases that the irq seems to be optional. They use dev_info, but will now have an error level print. That's fine with me, but some may complain...
Quoted 15 lines
)
...
}
// </smpl>Cc Rob Herring <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Andrzej Hajda <[email protected]>Cc Mark Brown <[email protected]>Cc Russell King - ARM Linux <[email protected]>Cc Marek Szyprowski <[email protected]>Cc Rafael J. Wysocki <[email protected]>Cc Andy Shevchenko <[email protected]>Signed-off-by Stephen Boyd <[email protected]>
Re: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
Quoting Rob Herring (2019-07-23 12:30:48)
Quoted 23 lines · Stephen Boyd
Quoted 4 lines
We don't need
dev_err()messages whenplatform_get_irq()fails now thatplatform_get_irq()prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.Nice. Would be nice to see this for other commonly called functions in probe though we have deal with cases of failure being okay.
Quoted 14 lines
// <smpl>
@@
expression ret;
structplatform_device*E;
@@ret =
(platform_get_irq(E, ...)
|platform_get_irq_byname(E, ...)
);
Quoted 13 lines
Quoted 10 lines
if ( \( ret < 0 \| ret <= 0 \) )
{
((quoted diff) +0
-4-if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... }|
...
-dev_err(...);What about cases of
pr_err,pr_warn, etc.? And the subsystem specific prints likeedac_printkand DRM_ERROR/DRM_DEV_ERROR.
I can add more variants to the script and maybe catch some more prints. Is that what you're asking for?
Quoted 4 lines
There's also some cases that the irq seems to be optional. They use
dev_info, but will now have an error level print. That's fine with me, but some may complain...
Yeah I wonder if there should be a platform_get_irq_optional() API that more explicitly indicates this and then doesn't print a warning when the irq isn't there.
Mark Brown
maintainerRe: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
Quoted 9 lines · Stephen Boyd
Quoting Rob Herring (2019-07-23 12:30:48)
Quoted 3 lines
There's also some cases that the irq seems to be optional. They use
dev_info, but will now have an error level print. That's fine with me, but some may complain...Yeah I wonder if there should be a
platform_get_irq_optional()API that more explicitly indicates this and then doesn't print a warning when the irq isn't there.
I think that'd be a good solution.
Greg Kroah-Hartman
maintainerRe: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
In reply to Stephen Boydsound/soc/sunxi/sun4i-i2s.c static int sun4i_i2s_probe(struct platform_device *pdev) · line 1093
Quoted 12 lines · Stephen Boyd
sound/soc/sunxi/sun4i-i2s.c +0
-1@@ -1088,7 +1088,6 @@ static int sun4i_i2s_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (&pdev->dev,"Can't retrieve our interrupt\n" );return irq; }
Just one example here, but you really want to remove those { } now as well.
That's in this patch a lot, so as-is, I don't think this is ok, sorry.
greg k-h
Re: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
In reply to Stephen BoydQuoted 3 lines · Stephen Boyd
We don't need
dev_err()messages whenplatform_get_irq()fails now thatplatform_get_irq()prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch.
PATCH v4 3/3 coccinelle: Add script to check for platform_get_irq() excessive prints
In reply to Stephen BoydAdd a coccinelle script to check for the usage of dev_err() after a call to platform_get_irq{,_byname}() as it's redundant now that the function already prints an error when it fails.
--- scripts/coccinelle/api/platform_get_irq.cocci | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 scripts/coccinelle/api/platform_get_irq.cocci
scripts/coccinelle/api/platform_get_irq.cocci new file +102 -0
@@ -0,0 +1,102 @@ +// SPDX-License-Identifier: GPL-2.0 +/// Remove dev_err() messages after platform_get_irq*() failures +// +// Confidence: Medium +// Options: --include-headers + +virtual patch +virtual context +virtual org +virtual report + +@depends on context@ +expression ret; +struct platform_device *E; +@@ + +ret = +( +platform_get_irq(E, ...) +| +platform_get_irq_byname(E, ...) +); + +if ( \( ret < 0 \| ret <= 0 \) ) +{ +( +if (ret != -EPROBE_DEFER) +{ ... +*dev_err(...); +... } +| +... +*dev_err(...); +) +... +} + +@depends on patch@ +expression ret; +struct platform_device *E; +@@ + +ret = +( +platform_get_irq(E, ...) +| +platform_get_irq_byname(E, ...) +); + +if ( \( ret < 0 \| ret <= 0 \) ) +{ +( +-if (ret != -EPROBE_DEFER) +-{ ... +-dev_err(...); +-... } +| +... +-dev_err(...); +) +... +} + +@r depends on org || report@ +position p1; +expression ret; +struct platform_device *E; +@@ + +ret = +( +platform_get_irq(E, ...) +| +platform_get_irq_byname(E, ...) +); + +if ( \( ret < 0 \| ret <= 0 \) ) +{ +( +if (ret != -EPROBE_DEFER) +{ ... +dev_err@p1(...); +... } +| +... +dev_err@p1(...); +) +... +} + +@script:python depends on org@ +p1 << r.p1; +@@ + +cocci.print_main(p1) + +@script:python depends on report@ +p1 << r.p1; +@@ + +msg = "line %s is redundant because platform_get_irq() already prints an error" % (p1[0].line) +coccilib.report.print_report(p1[0],msg)
Signature · 1 line
Sent by a computer through tubes
Re: [PATCH v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
I would prefer to concentrate the usage of SmPL disjunctions on changing implementation details so that the specification of duplicate code can be avoided.
scripts/coccinelle/api/platform_get_irq.cocci line 22
Quoted 5 lines
scripts/coccinelle/api/platform_get_irq.cocci new file +5
-0+( +platform_get_irq(E, ...) +| +platform_get_irq_byname(E, ...) +);
Function names:
+(platform_get_irq
+|platform_get_irq_byname
+)(E, ...);
Quoted 1 line
+if ( \( ret < 0 \| ret <= 0 \) )
Comparison operators:
+if (ret \( < \| <= \) 0)
Quoted 1 line
+if (ret != -EPROBE_DEFER)
Is it appropriate to treat this error code check as optional by the shown transformation approach?
Can this case distinction be omitted?
Regards,
Markus
Re: [PATCH v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
Quoting Markus Elfring (2019-07-24 02:30:16)
Quoted 18 lines
I would prefer to concentrate the usage of SmPL disjunctions on changing implementation details so that the specification of duplicate code can be avoided.
scripts/coccinelle/api/platform_get_irq.cocci line 22
Quoted 5 lines
scripts/coccinelle/api/platform_get_irq.cocci new file +5
-0+( +platform_get_irq(E, ...) +| +platform_get_irq_byname(E, ...) +);Function names:
(quoted diff) +3
-0+(platform_get_irq +|platform_get_irq_byname +)(E, ...);
Quoted 6 lines
Quoted 1 line
+if ( \( ret < 0 \| ret <= 0 \) )
Comparison operators:
+if (ret \( < \| <= \) 0)
Thanks. Will fold the above two in.
Quoted 6 lines
Quoted 2 lines
+if (ret != -EPROBE_DEFER)
Is it appropriate to treat this error code check as optional by the shown transformation approach?
Can this case distinction be omitted?
I don't know what you mean here. Do you want me to drop this part so that EPROBE_DEFER checks don't get removed?
Re: [v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
+if (ret != -EPROBE_DEFER)
Is it appropriate to treat this error code check as optional by the shown transformation approach?
Can this case distinction be omitted?I don't know what you mean here.
I suggest to take another look at the importance and relevance of this specific source code search detail (including SmPL disjunctions).
Quoted 1 line
Do you want me to drop this part so that
EPROBE_DEFERchecks don't get removed?
No, not at the moment. - But I am still looking for further clarification of the desired software design.
So I am curious how a corresponding agreement will evolve.
Regards,
Markus
Re: [PATCH v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
In reply to Stephen Boydscripts/coccinelle/api/platform_get_irq.cocci line 95
Quoted 5 lines
+@script:python depends on org@
scripts/coccinelle/api/platform_get_irq.cocci new file +4
-0+p1 << r.p1; +@@ + +cocci.print_main(p1)
Will an additional message be helpful at this place?
Will further software development considerations become more interesting also around a contribution like “Coccinelle: Add a SmPL script for the reconsideration of redundant dev_err() calls”?
https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/patchwork/patch/1095937/
https://lkml.org/lkml/2019/7/1/145
https://systeme.lip6.fr/pipermail/cocci/2019-July/006071.html
Regards,
Markus
Re: [PATCH v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
Quoting Markus Elfring (2019-07-24 06:18:35)
Quoted 9 lines
scripts/coccinelle/api/platform_get_irq.cocci line 95
Quoted 5 lines
+@script:python depends on org@
scripts/coccinelle/api/platform_get_irq.cocci new file +4
-0+p1 << r.p1; +@@ + +cocci.print_main(p1)Will an additional message be helpful at this place?
Quoted 8 lines
Will further software development considerations become more interesting also around a contribution like “Coccinelle: Add a SmPL script for the reconsideration of redundant
dev_err()calls”?
https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/patchwork/patch/1095937/
https://lkml.org/lkml/2019/7/1/145
https://systeme.lip6.fr/pipermail/cocci/2019-July/006071.html
Did this patch ever get merged? It seems better to amend that patch instead of introduce another one.
Re: [v4 3/3] coccinelle: Add script to check for platform_get_irq() excessive prints
Quoted 10 lines
Quoted 8 lines
Will further software development considerations become more interesting also around a contribution like “Coccinelle: Add a SmPL script for the reconsideration of redundant
dev_err()calls”?
https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/patchwork/patch/1095937/
https://lkml.org/lkml/2019/7/1/145
https://systeme.lip6.fr/pipermail/cocci/2019-July/006071.htmlDid this patch ever get merged?
Not yet. - I hope that this addition is still in the usual patch review queue.
Quoted 1 line
It seems better to amend that patch instead of introduce another one.
Further extensions can become more challenging for this software area. How would you like to adjust common implementation details?
Regards,
Markus