From: Yong Li Date: Tue, 11 Aug 2015 02:43:05 +0000 (+0800) Subject: cc2520: set the default fifo pin value from platform data X-Git-Tag: v4.14-rc1~4777^2~149^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85998229161f8a83863c371aa021bdb0887b9a63;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Varka Bhadram Signed-off-by: Marcel Holtmann --- diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 613dae5..c5b54a1 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; }