]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/parisc/iosapic.c
h63xx: initial omap board support.
[linux-2.6-omap-h63xx.git] / drivers / parisc / iosapic.c
index 12bab64a62a15da1d1f853a0fa203cc268c6d311..7beffcab274548545c15673025cbd639ce563094 100644 (file)
@@ -619,7 +619,9 @@ iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1)
 
 static struct vector_info *iosapic_get_vector(unsigned int irq)
 {
-       return irq_desc[irq].chip_data;
+       struct irq_desc *desc = irq_to_desc(irq);
+
+       return desc->chip_data;
 }
 
 static void iosapic_disable_irq(unsigned int irq)
@@ -874,7 +876,7 @@ void *iosapic_register(unsigned long hpa)
                return NULL;
        }
 
-       isi = (struct iosapic_info *)kzalloc(sizeof(struct iosapic_info), GFP_KERNEL);
+       isi = kzalloc(sizeof(struct iosapic_info), GFP_KERNEL);
        if (!isi) {
                BUG();
                return NULL;