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

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
...@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi, ...@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
if (!spi_pdata) if (!spi_pdata)
return -ENOENT; return -ENOENT;
*pdata = *spi_pdata; *pdata = *spi_pdata;
priv->fifo_pin = pdata->fifo;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment