ARM: s3c24xx: spi: avoid hardcoding fiq number in driver
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:48 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 20 Aug 2020 15:43:45 +0000 (17:43 +0200)
commitcd4bd8f9435ddf08a8677f56abf418423f223959
treedf2fab6e28f015c38994305ef007e1c3790955e3
parentb2a587cb650f181165f38d5db51adb8f6d7e1e67
ARM: s3c24xx: spi: avoid hardcoding fiq number in driver

The IRQ_EINT0 constant is a platform detail that is
defined in mach/irqs.h and not visible to drivers once
that header is made private.

Since the same calculation already happens in s3c24xx_set_fiq,
just return the value from there.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-31-krzk@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/irq-s3c24xx.c
drivers/spi/spi-s3c24xx.c
include/linux/spi/s3c24xx.h