diff options
author | Rob Herring <robh@kernel.org> | 2019-02-13 10:08:29 -0600 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-13 22:07:03 -0500 |
commit | 7f8e12f1e21524bd498477893b235e908843f1b7 (patch) | |
tree | 171e7dd34289982d672af24bfda268fe445f1ea8 /drivers/scsi/qlogicpti.c | |
parent | df46cac3f71c57e0b23f6865651629aaa54f8ca9 (diff) | |
download | linux-7f8e12f1e21524bd498477893b235e908843f1b7.tar.gz linux-7f8e12f1e21524bd498477893b235e908843f1b7.tar.bz2 linux-7f8e12f1e21524bd498477893b235e908843f1b7.zip |
scsi: qlogicpti: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper
instead. This removes direct access to the node name pointer.
As prom_name is not used for anything else, remove it.
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qlogicpti.c')
-rw-r--r-- | drivers/scsi/qlogicpti.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index e35ce762d454..0e22512bd3e4 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -1314,8 +1314,7 @@ static int qpti_sbus_probe(struct platform_device *op) qpti->qhost = host; qpti->op = op; qpti->qpti_id = nqptis; - strcpy(qpti->prom_name, op->dev.of_node->name); - qpti->is_pti = strcmp(qpti->prom_name, "QLGC,isp"); + qpti->is_pti = !of_node_name_eq(op->dev.of_node, "QLGC,isp"); if (qpti_map_regs(qpti) < 0) goto fail_unlink; |