Skip to content

Commit 8599822

Browse files
yongli3holtmann
authored andcommitted
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 <[email protected]> Acked-by: Varka Bhadram <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 0ff252c commit 8599822

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ieee802154/cc2520.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
833833
if (!spi_pdata)
834834
return -ENOENT;
835835
*pdata = *spi_pdata;
836+
priv->fifo_pin = pdata->fifo;
836837
return 0;
837838
}
838839

0 commit comments

Comments
 (0)