From patchwork Tue Sep 2 03:22:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4822711 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C0EF3C0338 for ; Tue, 2 Sep 2014 03:22:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F35C5201B4 for ; Tue, 2 Sep 2014 03:22:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF0012018B for ; Tue, 2 Sep 2014 03:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbaIBDWy (ORCPT ); Mon, 1 Sep 2014 23:22:54 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:47741 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbaIBDWx (ORCPT ); Mon, 1 Sep 2014 23:22:53 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB9002HJ824RV90@mailout4.samsung.com> for linux-spi@vger.kernel.org; Tue, 02 Sep 2014 12:22:52 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id CB.D9.02948.C0835045; Tue, 02 Sep 2014 12:22:52 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-9c-5405380ca366 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 85.51.05196.C0835045; Tue, 02 Sep 2014 12:22:52 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB900GCA823M2C0@mmp1.samsung.com>; Tue, 02 Sep 2014 12:22:51 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Thomas Chou' , 'Axel Lin' , 'Jingoo Han' Subject: [PATCH 1/4] spi: altera: remove unnecessary #ifdef CONFIG_OF Date: Tue, 02 Sep 2014 12:22:51 +0900 Message-id: <002a01cfc65d$2dc86640$895932c0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/GXS2wJc8EBz8zSBqRmOHmAmSxZQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t8zQ10eC9YQg793uC2OzPnKbDH14RM2 i8sLL7FaNH68yW6xvOcEmwOrR9vPMo9NqzrZPPq2rGL0+LxJzmPdkcPMAaxRXDYpqTmZZalF +nYJXBlLN3gUHGSrWPDtL1sD4wbWLkZODgkBE4lTa3qZIWwxiQv31rOB2EICyxgl/vzghKmZ e3odUxcjF1B8EaPEodU9jBDOb0aJNffnMYJUsQmoSXz5cpi9i5GDQ0RAVeL/K3eQGmaBbkaJ 9hW7wDYIC7hK/F50lgXEZgGqWbVqHVicV8BWYtfpU6wQtqDEj8n3wGqYBbQk1u88zgRhy0ts XvOWGWS+hIC6xKO/uhCr9CRedZtDVIhI7HvxDuw0CYF97BLftx5hglglIPFt8iEWiFZZiU0H oP6VlDi44gbLBEaxWUgWz0KyeBaSxbOQrFjAyLKKUTS1ILmgOCm9yFCvODG3uDQvXS85P3cT IyTmencw3j5gfYhRgINRiYdX4gdLiBBrYllxZe4hRlOgiyYyS4km5wMjO68k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/WCu1duXHV8zms+vKm7VFFz4/uWmjvfrVrAeepe/sVNioViXpmyo0a1Nh0TsL83kupQR /jTn52nP+0osxRmJhlrMRcWJALECVw//AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Remove unnecessary #ifdef CONFIG_OF, because this is already handled by the of_match_ptr macro. Signed-off-by: Jingoo Han --- drivers/spi/spi-altera.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index 5b5709a5c957..588d428f47c8 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c @@ -268,14 +268,12 @@ static int altera_spi_remove(struct platform_device *dev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id altera_spi_match[] = { { .compatible = "ALTR,spi-1.0", }, { .compatible = "altr,spi-1.0", }, {}, }; MODULE_DEVICE_TABLE(of, altera_spi_match); -#endif /* CONFIG_OF */ static struct platform_driver altera_spi_driver = { .probe = altera_spi_probe,