summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-12-29 15:49:08 +0100
committerLinus Walleij <linus.walleij@linaro.org>2019-04-19 20:37:40 +0200
commit075df31aed44cd9b9f2fd6522b16183415ee3351 (patch)
tree43fbcf849ce7598d115979f7783175d9f6e19eb0 /arch/arm/mach-ixp4xx
parent98ac0cc270b717c49a49787fe7c42041123290bb (diff)
downloadlinux-075df31aed44cd9b9f2fd6522b16183415ee3351.tar.gz
linux-075df31aed44cd9b9f2fd6522b16183415ee3351.tar.bz2
linux-075df31aed44cd9b9f2fd6522b16183415ee3351.zip
ARM: ixp4xx: Pass IRQ resource to beeper
All IXP4xx devices except the beeper passes the IRQ as a resource, augment the NSLU2 beeper to do the same. This is a prerequisite for SPARSE_IRQ. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r--arch/arm/mach-ixp4xx/nslu2-setup.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c
index 341b263482ef..7c2b6604187e 100644
--- a/arch/arm/mach-ixp4xx/nslu2-setup.c
+++ b/arch/arm/mach-ixp4xx/nslu2-setup.c
@@ -125,10 +125,18 @@ static struct platform_device nslu2_i2c_gpio = {
},
};
+static struct resource nslu2_beeper_resources[] = {
+ {
+ .start = IRQ_IXP4XX_TIMER2,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
static struct platform_device nslu2_beeper = {
.name = "ixp4xx-beeper",
.id = NSLU2_GPIO_BUZZ,
- .num_resources = 0,
+ .resource = nslu2_beeper_resources,
+ .num_resources = ARRAY_SIZE(nslu2_beeper_resources),
};
static struct resource nslu2_uart_resources[] = {