X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=arch%2Farm%2Fmach-ixp4xx%2Fnslu2-setup.c;h=ee1877fcfafea40671eb344d61c75452740f1ee9;hb=dc8ef8cd3a05;hp=341b263482ef98a7045d4ea31a1a9ddc2ab890d6;hpb=930218affeadd1325ea17e053f0dcecf218f5a4f;p=thirdparty%2Flinux.git diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index 341b263482ef9..ee1877fcfafea 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c @@ -32,6 +32,8 @@ #include #include +#include "irqs.h" + #define NSLU2_SDA_PIN 7 #define NSLU2_SCL_PIN 6 @@ -125,10 +127,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[] = {