hpsa.c (1ac731c529cd4d6adbce134754b51ff7d822b145) | hpsa.c (6c6c0afd35103bf392b173ff81ad274d65420364) |
---|---|
1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries 4 * Copyright 2016 Microsemi Corporation 5 * Copyright 2014-2015 PMC-Sierra, Inc. 6 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 5836 unchanged lines hidden (view full) --- 5845 spin_unlock_irqrestore(&h->scan_lock, flags); 5846 return finished; 5847} 5848 5849static int hpsa_scsi_host_alloc(struct ctlr_info *h) 5850{ 5851 struct Scsi_Host *sh; 5852 | 1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries 4 * Copyright 2016 Microsemi Corporation 5 * Copyright 2014-2015 PMC-Sierra, Inc. 6 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 5836 unchanged lines hidden (view full) --- 5845 spin_unlock_irqrestore(&h->scan_lock, flags); 5846 return finished; 5847} 5848 5849static int hpsa_scsi_host_alloc(struct ctlr_info *h) 5850{ 5851 struct Scsi_Host *sh; 5852 |
5853 sh = scsi_host_alloc(&hpsa_driver_template, sizeof(struct ctlr_info)); | 5853 sh = scsi_host_alloc(&hpsa_driver_template, sizeof(struct ctlr_info *)); |
5854 if (sh == NULL) { 5855 dev_err(&h->pdev->dev, "scsi_host_alloc failed\n"); 5856 return -ENOMEM; 5857 } 5858 5859 sh->io_port = 0; 5860 sh->n_io_port = 0; 5861 sh->this_id = -1; --- 4161 unchanged lines hidden --- | 5854 if (sh == NULL) { 5855 dev_err(&h->pdev->dev, "scsi_host_alloc failed\n"); 5856 return -ENOMEM; 5857 } 5858 5859 sh->io_port = 0; 5860 sh->n_io_port = 0; 5861 sh->this_id = -1; --- 4161 unchanged lines hidden --- |