提交 85998229 编写于 作者: Y Yong Li 提交者: 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: NYong Li <sdliyong@gmail.com>
Acked-by: NVarka Bhadram <varkabhadram@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册