Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85998229 authored by Yong Li's avatar Yong Li Committed by Marcel Holtmann
Browse files

cc2520: set the default fifo pin value from platform data



When the device tree support is disabled, the fifo_pin is uninitialized,
this patch will set the fifo_pin value based on platform data

Signed-off-by: default avatarYong Li <sdliyong@gmail.com>
Acked-by: default avatarVarka Bhadram <varkabhadram@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 0ff252c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
		if (!spi_pdata)
			return -ENOENT;
		*pdata = *spi_pdata;
		priv->fifo_pin = pdata->fifo;
		return 0;
	}