From patchwork Wed Oct 8 18:51:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 5055091 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 628A49F349 for ; Wed, 8 Oct 2014 18:51:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D38520122 for ; Wed, 8 Oct 2014 18:51:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7BEF2018E for ; Wed, 8 Oct 2014 18:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751517AbaJHSvd (ORCPT ); Wed, 8 Oct 2014 14:51:33 -0400 Received: from mail-bn1bon0094.outbound.protection.outlook.com ([157.56.111.94]:60914 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751460AbaJHSvd (ORCPT ); Wed, 8 Oct 2014 14:51:33 -0400 X-Greylist: delayed 78743 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Oct 2014 14:51:32 EDT Received: from dinh-ubuntu.altera.com (64.129.157.38) by BN1PR03MB121.namprd03.prod.outlook.com (10.255.201.16) with Microsoft SMTP Server (TLS) id 15.0.1044.10; Wed, 8 Oct 2014 18:51:29 +0000 From: To: CC: , , , , , , Subject: [PATCHv2] spi: dw: Initialize of_node to discover DT node children Date: Wed, 8 Oct 2014 13:51:34 -0500 Message-ID: <1412794294-31248-1-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BN1PR08CA0022.namprd08.prod.outlook.com (10.242.217.150) To BN1PR03MB121.namprd03.prod.outlook.com (10.255.201.16) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB121; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(50466002)(102836001)(89996001)(105586002)(42186005)(122386002)(62966002)(21056001)(110136001)(48376002)(85306004)(101416001)(229853001)(106356001)(53416004)(107046002)(2351001)(81156004)(86362001)(40100002)(93916002)(33646002)(76482002)(85852003)(120916001)(87286001)(88136002)(31966008)(99396003)(87976001)(77096002)(69596002)(19580395003)(19580405001)(104166001)(50226001)(4396001)(80022003)(46102003)(77156001)(97736003)(47776003)(50986999)(20776003)(92566001)(86152002)(64706001)(95666004)(66066001)(92726001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB121; H:dinh-ubuntu.altera.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX:1; LANG:en; X-OriginatorOrg: opensource.altera.com Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer The of_node element must be initialized to enable discovery of node children which takes place in the of_register_spi_devices() function. Signed-off-by: Thor Thayer --- v2: Remove #ifdef (CONFIG_OF). Remove other files. --- drivers/spi/spi-dw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 0dd0623..0159a70 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -671,6 +671,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) master->cleanup = dw_spi_cleanup; master->transfer_one_message = dw_spi_transfer_one_message; master->max_speed_hz = dws->max_freq; + master->dev.of_node = dev->of_node; /* Basic HW init */ spi_hw_init(dws);