Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753390AbbHJH3P (ORCPT ); Mon, 10 Aug 2015 03:29:15 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:33326 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587AbbHJH3M convert rfc822-to-8bit (ORCPT ); Mon, 10 Aug 2015 03:29:12 -0400 X-TMN: [WCPLOgGPR9xad4UaLLavqHbkzFlCxAhy] Message-ID: From: LIYONG To: "varkabhadram@gmail.com" , "alex.aring@gmail.com" , "linux-wpan@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: YONG LI Subject: [PATCHv1 bluetooth-next] cc2520: set the default fifo pin value from platform data Date: Mon, 10 Aug 2015 15:29:07 +0800 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 10 Aug 2015 07:29:07.0736 (UTC) FILETIME=[3E1E7180:01D0D33E] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 28 In case of 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 --- ?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 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; ? ? ? ? } -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/