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-ti-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-ti-qspi.c')
| -rw-r--r-- | drivers/spi/spi-ti-qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index dfd4a7948c03..9122350402b5 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c @@ -824,7 +824,7 @@ static int ti_qspi_probe(struct platform_device *pdev) } - if (of_property_read_bool(np, "syscon-chipselects")) { + if (of_property_present(np, "syscon-chipselects")) { qspi->ctrl_base = syscon_regmap_lookup_by_phandle(np, "syscon-chipselects"); |
