]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/dma/ioatdma.c
[IOAT]: Fix a warning in ioatdma
[mv-sheeva.git] / drivers / dma / ioatdma.c
index 0fdf7fbd6495833b573d97275648213de0103e60..d4810696e8cb9160326c19633cbe27e1c8342c76 100644 (file)
@@ -739,7 +739,7 @@ static int __devinit ioat_probe(struct pci_dev *pdev,
                device->msi = 0;
        }
 #endif
-       err = request_irq(pdev->irq, &ioat_do_interrupt, SA_SHIRQ, "ioat",
+       err = request_irq(pdev->irq, &ioat_do_interrupt, IRQF_SHARED, "ioat",
                device);
        if (err)
                goto err_irq;
@@ -824,8 +824,7 @@ static int __init ioat_init_module(void)
 {
        /* it's currently unsafe to unload this module */
        /* if forced, worst case is that rmmod hangs */
-       if (THIS_MODULE != NULL)
-               THIS_MODULE->unsafe = 1;
+       __unsafe(THIS_MODULE);
 
        return pci_module_init(&ioat_pci_drv);
 }