]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/mesh.c
[PATCH] Necessary evil to get sata_vsc to initialize with Intel iq3124h hba
[linux-2.6-omap-h63xx.git] / drivers / scsi / mesh.c
index bdccf73cf9fe246d880c9b4e2efbd48b5ec5820f..d6d2125f9044452d6f55a0721bf628cc16130dc9 100644 (file)
@@ -1869,7 +1869,8 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
 
        if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) {
                        printk(KERN_ERR "mesh: expected 2 addrs and 2 intrs"
-                      " (got %d,%d)\n", mesh->n_addrs, mesh->n_intrs);
+                      " (got %d,%d)\n", macio_resource_count(mdev),
+                      macio_irq_count(mdev));
                return -ENODEV;
        }