diff mbox series

[v2,16/16] imx28: avoid num_cs and spi_max_frequency build errors

Message ID 20221022215945.84052-17-marcel@ziswiler.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series arm: dts: imx: sync device trees with upstream linux kernel part 2 | expand

Commit Message

Marcel Ziswiler Oct. 22, 2022, 9:59 p.m. UTC
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>

Avoid the following build errors after the device tree sync:

drivers/spi/mxs_spi.c: In function ‘mxs_spi_probe’:
drivers/spi/mxs_spi.c:327:25: error: ‘struct dtd_fsl_imx23_spi’ has no
 member named ‘spi_max_frequency’
  327 |  priv->max_freq = dtplat->spi_max_frequency;
      |                         ^~
drivers/spi/mxs_spi.c:328:23: error: ‘struct dtd_fsl_imx23_spi’ has no
 member named ‘num_cs’
  328 |  plat->num_cs = dtplat->num_cs;
      |                       ^~

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

---

(no changes since v1)

 arch/arm/dts/imx28-xea-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Babic Oct. 24, 2022, 1:55 p.m. UTC | #1
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> Avoid the following build errors after the device tree sync:
> drivers/spi/mxs_spi.c: In function ‘mxs_spi_probe’:
> drivers/spi/mxs_spi.c:327:25: error: ‘struct dtd_fsl_imx23_spi’ has no
>  member named ‘spi_max_frequency’
>   327 |  priv->max_freq = dtplat->spi_max_frequency;
>       |                         ^~
> drivers/spi/mxs_spi.c:328:23: error: ‘struct dtd_fsl_imx23_spi’ has no
>  member named ‘num_cs’
>   328 |  plat->num_cs = dtplat->num_cs;
>       |                       ^~
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi
index cc2ced5d2d..8b5d7e10b3 100644
--- a/arch/arm/dts/imx28-xea-u-boot.dtsi
+++ b/arch/arm/dts/imx28-xea-u-boot.dtsi
@@ -42,5 +42,7 @@ 
 };
 
 &ssp3 {
+	num-cs = <2>;
+	spi-max-frequency = <40000000>;
 	u-boot,dm-spl;
 };