[SCSI] ipr: add workaround for MSI interrupts on P7
[safe/jmp/linux-2.6] / drivers / scsi / jazz_esp.c
index 0140766..b2d481d 100644 (file)
@@ -143,7 +143,7 @@ static int __devinit esp_jazz_probe(struct platform_device *dev)
                goto fail;
 
        host->max_id = 8;
-       esp = host_to_esp(host);
+       esp = shost_priv(host);
 
        esp->host = host;
        esp->dev = dev;
@@ -217,11 +217,15 @@ static int __devexit esp_jazz_remove(struct platform_device *dev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:jazz_esp");
+
 static struct platform_driver esp_jazz_driver = {
        .probe          = esp_jazz_probe,
        .remove         = __devexit_p(esp_jazz_remove),
        .driver = {
                .name   = "jazz_esp",
+               .owner  = THIS_MODULE,
        },
 };