summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorYong Li2015-08-11 04:43:05 +0200
committerMarcel Holtmann2015-08-11 06:13:39 +0200
commit85998229161f8a83863c371aa021bdb0887b9a63 (patch)
treef5e95fe795cdf7c82326cd675e0489af52afcf30 /drivers/net/ieee802154
parentBluetooth: hciuart: Add support QCA chipset for UART (diff)
downloadkernel-qcow2-linux-85998229161f8a83863c371aa021bdb0887b9a63.tar.gz
kernel-qcow2-linux-85998229161f8a83863c371aa021bdb0887b9a63.tar.xz
kernel-qcow2-linux-85998229161f8a83863c371aa021bdb0887b9a63.zip
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;
}