diff options
Diffstat (limited to 'drivers/scsi/aacraid/linit.c')
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index c709dc8ad99d..813556c60007 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -826,7 +826,7 @@ static ssize_t aac_show_reset_adapter(struct class_device *class_dev, | |||
826 | tmp = aac_adapter_check_health(dev); | 826 | tmp = aac_adapter_check_health(dev); |
827 | if ((tmp == 0) && dev->in_reset) | 827 | if ((tmp == 0) && dev->in_reset) |
828 | tmp = -EBUSY; | 828 | tmp = -EBUSY; |
829 | len = snprintf(buf, PAGE_SIZE, "0x%x", tmp); | 829 | len = snprintf(buf, PAGE_SIZE, "0x%x\n", tmp); |
830 | return len; | 830 | return len; |
831 | } | 831 | } |
832 | 832 | ||
@@ -1126,9 +1126,8 @@ static int __devinit aac_probe_one(struct pci_dev *pdev, | |||
1126 | static void aac_shutdown(struct pci_dev *dev) | 1126 | static void aac_shutdown(struct pci_dev *dev) |
1127 | { | 1127 | { |
1128 | struct Scsi_Host *shost = pci_get_drvdata(dev); | 1128 | struct Scsi_Host *shost = pci_get_drvdata(dev); |
1129 | struct aac_dev *aac = (struct aac_dev *)shost->hostdata; | ||
1130 | scsi_block_requests(shost); | 1129 | scsi_block_requests(shost); |
1131 | __aac_shutdown(aac); | 1130 | __aac_shutdown((struct aac_dev *)shost->hostdata); |
1132 | } | 1131 | } |
1133 | 1132 | ||
1134 | static void __devexit aac_remove_one(struct pci_dev *pdev) | 1133 | static void __devexit aac_remove_one(struct pci_dev *pdev) |