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]> (cherry picked from commit 85998229161f8a83863c371aa021bdb0887b9a63) --- drivers/net/ieee802154/cc2520.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index f833b8b..fd94820 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c @@ -725,6 +725,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; } -- 2.1.4 -- _______________________________________________ linux-yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/linux-yocto
