X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-pxa%2Fcorgi.c;h=d6d7260363613a2a17afaa64c73aba6d3591694c;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=cce26576999ea8333a89a132f622edbe01185928;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index cce265769..d6d726036 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -27,7 +26,6 @@ #include #include #include -#include #include #include @@ -225,7 +223,7 @@ static int corgi_mci_init(struct device *dev, irqreturn_t (*corgi_detect_int)(in corgi_mci_platform_data.detect_delay = msecs_to_jiffies(250); err = request_irq(CORGI_IRQ_GPIO_nSD_DETECT, corgi_detect_int, - IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, + SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, "MMC card detect", data); if (err) { printk(KERN_ERR "corgi_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); @@ -312,31 +310,8 @@ static struct platform_device *devices[] __initdata = { &corgiled_device, }; -static void corgi_poweroff(void) -{ - RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; - - if (!machine_is_corgi()) - /* Green LED off tells the bootloader to halt */ - reset_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); - arm_machine_restart('h'); -} - -static void corgi_restart(char mode) -{ - RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; - - if (!machine_is_corgi()) - /* Green LED on tells the bootloader to reboot */ - set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); - arm_machine_restart('h'); -} - static void __init corgi_init(void) { - pm_power_off = corgi_poweroff; - arm_pm_restart = corgi_restart; - /* setup sleep mode values */ PWER = 0x00000002; PFER = 0x00000000;