OSDN Git Service

ARM: imx: Remove imx_add_imx_dma() unused irq_err argument
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 1 Jul 2020 22:10:39 +0000 (17:10 -0500)
committerShawn Guo <shawnguo@kernel.org>
Mon, 13 Jul 2020 03:26:50 +0000 (11:26 +0800)
commitf8951dce10c092075e39ef12c29022548e4c63db
tree0682296c7a9a57edd873970b4f1d1389a4ba6e56
parent2a83544007aba792167615c393e6154824f3a175
ARM: imx: Remove imx_add_imx_dma() unused irq_err argument

No callers of imx_add_imx_dma() need an error IRQ, so they supply 0 as
"irq_err", which means we register a resource of IRQ 0, which is invalid
and causes a warning if used.

Remove the "irq_err" argument altogether so there's no chance of trying to
use the invalid IRQ 0.

Fixes: a85a6c86c25be ("driver core: platform: Clarify that IRQ 0 is invalid")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: kernel@pengutronix.de
Cc: Fabio Estevam <festevam@gmail.com>
Cc: linux-imx@nxp.com
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/devices/devices-common.h
arch/arm/mach-imx/devices/platform-imx-dma.c
arch/arm/mach-imx/mm-imx21.c
arch/arm/mach-imx/mm-imx27.c