From 3de7c989206ef16c7feddb76d81f3f5d499a6bad Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Sep 2010 21:51:59 +0800 Subject: [PATCH] fix the irq error when release cmmb irq --- drivers/cmmb/siano/smsspiphy_rk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cmmb/siano/smsspiphy_rk.c b/drivers/cmmb/siano/smsspiphy_rk.c index ef39515d15cf..82181e863b5c 100755 --- a/drivers/cmmb/siano/smsspiphy_rk.c +++ b/drivers/cmmb/siano/smsspiphy_rk.c @@ -459,7 +459,7 @@ void *smsspiphy_init(void *context, void (*smsspi_interruptHandler) (void *), //root@zyc-desktop:/usr/android_source/android_cmmb_dev/kernel/kernel/drivers/cmmb/siano# // //1186_SPIIRQ, (pFunc)spibus_interrupt, GPIOEdgelRising, spiphy_dev); - request_irq(gpio_to_irq(CMMB_1186_SPIIRQ),spibus_interrupt,IRQF_TRIGGER_RISING,NULL,spiphy_dev); + request_irq(gpio_to_irq(CMMB_1186_SPIIRQ),spibus_interrupt,IRQF_TRIGGER_RISING,"inno_irq",spiphy_dev); if(ret<0){ printk("siano 1186 request irq failed !!\n"); @@ -475,7 +475,7 @@ void *smsspiphy_init(void *context, void (*smsspi_interruptHandler) (void *), return spiphy_dev; fail1: - free_irq(gpio_to_irq(CMMB_1186_SPIIRQ), NULL); + free_irq(gpio_to_irq(CMMB_1186_SPIIRQ), spiphy_dev); return 0; } @@ -491,7 +491,7 @@ int smsspiphy_deinit(void *context) &sms_panic_notifier); chip_powerdown(); sms_info("exiting\n"); - free_irq(gpio_to_irq(CMMB_1186_SPIIRQ), NULL); + free_irq(gpio_to_irq(CMMB_1186_SPIIRQ), spiphy_dev); gpio_free(CMMB_1186_SPIIRQ); return 0; } -- 2.34.1