scsi: smartpqi: enhance numa node detection
authorSagar Biradar <sagar.biradar@microsemi.com>
Fri, 7 Dec 2018 22:29:12 +0000 (16:29 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 20 Dec 2018 03:23:35 +0000 (22:23 -0500)
commit62dc51fb946697c896e47df7187862c310a3d21c
tree5b8592574bd61510ea52dd453c4a7bb485c4f634
parent2b447f811c1f7f30e4caa5a817d0c95d06aff874
scsi: smartpqi: enhance numa node detection

- set pci_dev->dev to 0 only if the node is NO_NUMA_NODE.
  If not, do not reset the value but retain it.

Reviewed-by: Murthy Bhat <murthy.bhat@microsemi.com>
Reviewed-by: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Sagar Biradar <sagar.biradar@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c