spi: mpc5xxx-psc: Use platform resources instead of parsing DT properties
authorRob Herring <robh@kernel.org>
Fri, 17 Feb 2023 20:45:42 +0000 (14:45 -0600)
committerMark Brown <broonie@kernel.org>
Sun, 5 Mar 2023 23:39:02 +0000 (23:39 +0000)
commit60a6c8257f4144f49a7e0178603dd61ef4424a67
tree13b50c8a3f41a6d2b829d758f2169cb5eafa36b5
parent01602336524e170bf7fe745b29258a4d1cafa9dd
spi: mpc5xxx-psc: Use platform resources instead of parsing DT properties

The mpc52xx-psc and mpc512x-psc drivers use DT property parsing
functions for 'reg' and 'interrupts', but those are available as
platform device resources. Convert probe functions to use them and
simplify probe to a single function. For 'cell-index', also use the
preferred typed property function.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230217-dt-mpc5xxx-spi-v1-3-3be8602fce1e@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpc512x-psc.c
drivers/spi/spi-mpc52xx-psc.c