diff options
| author | Rob Herring (Arm) <[email protected]> | 2024-11-04 19:07:59 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-11-04 19:18:19 +0000 |
| commit | 270ddc23914ed79aa117373f4b3413c34cdabf12 (patch) | |
| tree | 122a43820c0a674723510adc5bb37235f5612f72 /drivers/spi/spi-qcom-qspi.c | |
| parent | spi: zynqmp-gqspi: Undo runtime PM changes at driver exit time (diff) | |
| download | kernel-270ddc23914ed79aa117373f4b3413c34cdabf12.tar.gz kernel-270ddc23914ed79aa117373f4b3413c34cdabf12.zip | |
spi: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is
deprecated in favor of of_property_present() when testing for property
presence.
Signed-off-by: Rob Herring (Arm) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-qcom-qspi.c')
| -rw-r--r-- | drivers/spi/spi-qcom-qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-qcom-qspi.c b/drivers/spi/spi-qcom-qspi.c index 056f02677376..3aeddada58e1 100644 --- a/drivers/spi/spi-qcom-qspi.c +++ b/drivers/spi/spi-qcom-qspi.c @@ -771,7 +771,7 @@ static int qcom_qspi_probe(struct platform_device *pdev) host->prepare_message = qcom_qspi_prepare_message; host->transfer_one = qcom_qspi_transfer_one; host->handle_err = qcom_qspi_handle_err; - if (of_property_read_bool(pdev->dev.of_node, "iommus")) + if (of_property_present(pdev->dev.of_node, "iommus")) host->can_dma = qcom_qspi_can_dma; host->auto_runtime_pm = true; host->mem_ops = &qcom_qspi_mem_ops; |
