diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-06 21:31:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-07 16:58:34 +0300 |
commit | 3169c5816a55ba671e9c8a671c6c75818d30c657 (patch) | |
tree | b8d8227ef940a30f6422f411ee65e05b343a8fe0 /drivers/spi/spi-mpc52xx-psc.c | |
parent | 289c084ddc1317e6ed911911f95371679c10af1e (diff) | |
download | linux-3169c5816a55ba671e9c8a671c6c75818d30c657.tar.xz |
spi: mpc5xxx-psc: Consistently use device property APIs
Instead of calling the OF APIs mixed with device property APIs,
just switch to use the latter everywhere.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230306183115.87314-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mpc52xx-psc.c')
-rw-r--r-- | drivers/spi/spi-mpc52xx-psc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mpc52xx-psc.c b/drivers/spi/spi-mpc52xx-psc.c index 335a6b9eb141..9a1a080fb688 100644 --- a/drivers/spi/spi-mpc52xx-psc.c +++ b/drivers/spi/spi-mpc52xx-psc.c @@ -309,7 +309,7 @@ static int mpc52xx_psc_spi_of_probe(struct platform_device *pdev) /* the spi->mode bits understood by this driver: */ master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; - ret = of_property_read_u32(dev->of_node, "cell-index", &bus_num); + ret = device_property_read_u32(dev, "cell-index", &bus_num); if (ret || bus_num > 5) return dev_err_probe(dev, ret ? : -EINVAL, "Invalid cell-index property\n"); master->bus_num = bus_num + 1; |