diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-04-24 08:35:37 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-24 08:35:37 -0400 |
commit | 0d626239ffe515a64a6b53c70896796f621c635c (patch) | |
tree | 453091db20907cf7baef72ffe75792aeeb038150 /arch/arm/mach-integrator | |
parent | 807501475fce0ebe68baedf87f202c3e4ee0d12c (diff) |
arm/mach-integrator/time.c, mwave: revert portions of recent irq cleanups
The recent irq cleanups for arch/arm/mach-integrator/time.c and
drivers/char/mwave/tp3780i.c changed the request_irq() dev_id
parameter, but neglected to change the matching free_irq() parameter,
thus creating a bug upon irq de-registration.
Given that the impetus for the changes is not yet accepted upstream,
it is best to revert the irq cleanups.
Mostly. A comment is added to time.c to reduce future confusion,
of type that led to my time.c cleanup in the first place.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/time.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-integrator/time.c b/arch/arm/mach-integrator/time.c index 5235f64f235b..8508a0db3eaf 100644 --- a/arch/arm/mach-integrator/time.c +++ b/arch/arm/mach-integrator/time.c | |||
@@ -124,8 +124,11 @@ static int rtc_probe(struct amba_device *dev, void *id) | |||
124 | 124 | ||
125 | xtime.tv_sec = __raw_readl(rtc_base + RTC_DR); | 125 | xtime.tv_sec = __raw_readl(rtc_base + RTC_DR); |
126 | 126 | ||
127 | /* note that 'dev' is merely used for irq disambiguation; | ||
128 | * it is not actually referenced in the irq handler | ||
129 | */ | ||
127 | ret = request_irq(dev->irq[0], arm_rtc_interrupt, IRQF_DISABLED, | 130 | ret = request_irq(dev->irq[0], arm_rtc_interrupt, IRQF_DISABLED, |
128 | "rtc-pl030", NULL); | 131 | "rtc-pl030", dev); |
129 | if (ret) | 132 | if (ret) |
130 | goto map_out; | 133 | goto map_out; |
131 | 134 | ||