diff options
author | John Garry <john.garry@huawei.com> | 2016-09-06 23:36:19 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-14 12:54:18 -0400 |
commit | a6f2c7fff90a6fe7a31e764a21b65a809fafa765 (patch) | |
tree | 6867b78c86a632969ce1b5cb2dc74df0809deb11 /drivers/thermal/thermal_hwmon.h | |
parent | 09fe9ecb18a7add9b05928151998692d96338e41 (diff) | |
download | linux-a6f2c7fff90a6fe7a31e764a21b65a809fafa765.tar.gz |
scsi: hisi_sas: set dma mask before allocate DMA memory
The device DMA mask was being set after the bulk of the DMA allocations
in the driver init, so potentially DMA allocates fail. To resolve,
relocate before allocating the DMA memory when initialising the driver.
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/thermal/thermal_hwmon.h')
0 files changed, 0 insertions, 0 deletions