summaryrefslogtreecommitdiff
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorYong Li <sdliyong@gmail.com>2015-08-11 10:43:05 +0800
committerMarcel Holtmann <marcel@holtmann.org>2015-08-11 06:13:39 +0200
commit85998229161f8a83863c371aa021bdb0887b9a63 (patch)
treef5e95fe795cdf7c82326cd675e0489af52afcf30 /drivers/net/ieee802154
parent0ff252c1976da5d80db1377eb39b551931e61826 (diff)
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: Yong Li <sdliyong@gmail.com> Acked-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/cc2520.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 613dae559925..c5b54a15fc4c 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -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;
}