From patchwork Mon Feb 3 01:43:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 3567741 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 2AC469F2E9 for ; Mon, 3 Feb 2014 01:49:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 62BAC201C0 for ; Mon, 3 Feb 2014 01:49:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9432B201BA for ; Mon, 3 Feb 2014 01:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752676AbaBCBtB (ORCPT ); Sun, 2 Feb 2014 20:49:01 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:61639 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752674AbaBCBtA (ORCPT ); Sun, 2 Feb 2014 20:49:00 -0500 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Sun, 02 Feb 2014 20:49:00 EST Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 03 Feb 2014 10:43:56 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 809EB453BB; Mon, 3 Feb 2014 10:43:56 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 6A45B480A5; Mon, 3 Feb 2014 10:43:56 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 5CFFE480A0; Mon, 3 Feb 2014 10:43:56 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id LAE20766; Mon, 3 Feb 2014 10:43:56 +0900 X-IronPort-AV: E=Sophos;i="4.95,768,1384268400"; d="scan'";a="153415890" Received: from mail-db3lp0076.outbound.protection.outlook.com (HELO emea01-db3-obe.outbound.protection.outlook.com) ([213.199.154.76]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 03 Feb 2014 10:43:52 +0900 Received: from [10.161.41.115] (211.11.155.148) by SINPR06MB012.apcprd06.prod.outlook.com (10.242.50.20) with Microsoft SMTP Server (TLS) id 15.0.868.8; Mon, 3 Feb 2014 01:43:49 +0000 Message-ID: <52EEF452.4060205@renesas.com> Date: Mon, 3 Feb 2014 10:43:46 +0900 From: "Shimoda, Yoshihiro" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Mark Brown CC: Geert Uytterhoeven , , SH-Linux Subject: [PATCH] spi: rspi: fix build error when CONFIG_OF is not set X-Originating-IP: [211.11.155.148] X-ClientProxiedBy: SINPR04CA002.apcprd04.prod.outlook.com (10.242.48.32) To SINPR06MB012.apcprd06.prod.outlook.com (10.242.50.20) X-Forefront-PRVS: 01110342A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009001)(6049001)(6009001)(189002)(199002)(65806001)(80022001)(94316002)(65956001)(74876001)(90146001)(74366001)(56816005)(66066001)(79102001)(47446002)(59896001)(50986001)(23756003)(64126003)(36756003)(49866001)(76482001)(47736001)(47976001)(74502001)(86362001)(77982001)(33656001)(94946001)(59766001)(63696002)(69226001)(74706001)(81342001)(47776003)(93136001)(81542001)(74662001)(31966008)(50466002)(93516002)(56776001)(54316002)(85306002)(85852003)(87976001)(92566001)(83072002)(92726001)(19580405001)(53806001)(4396001)(83322001)(80316001)(80976001)(51856001)(19580395003)(83506001)(77096001)(81816001)(81686001)(46102001)(76786001)(54356001)(76176001)(42186004)(76796001); DIR:OUT; SFP:1101; SCL:1; SRVR:SINPR06MB012; H:[10.161.41.115]; CLIP:211.11.155.148; FPR:2CA26C6D.2066EC2.C1C7AB4F.94D64EF1.20163; InfoNoRecordsMX:1; A:1; LANG:en; X-OriginatorOrg: renesas.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=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This patch fixes an issue that the following build error happens when the CONFIG_OF is not set: drivers/spi/spi-rspi.c: In function 'rspi_probe': drivers/spi/spi-rspi.c:1203:26: error: 'rspi_of_match' undeclared (first use in this function) Signed-off-by: Yoshihiro Shimoda --- This patch is based on the latest origin/topic/rspi branch in the spi.git. drivers/spi/spi-rspi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 34ad4bc..e5cfc3d 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -1164,6 +1164,7 @@ static int rspi_parse_dt(struct device *dev, struct spi_master *master) return 0; } #else +#define rspi_of_match NULL static inline int rspi_parse_dt(struct device *dev, struct spi_master *master) { return -EINVAL;