From patchwork Tue Dec 31 08:30:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3421521 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 239BCC02DC for ; Tue, 31 Dec 2013 08:34:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3AFA420120 for ; Tue, 31 Dec 2013 08:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E7C82011B for ; Tue, 31 Dec 2013 08:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752125Ab3LaIeU (ORCPT ); Tue, 31 Dec 2013 03:34:20 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33672 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943Ab3LaIeT (ORCPT ); Tue, 31 Dec 2013 03:34:19 -0500 Received: by mail-pa0-f41.google.com with SMTP id lf10so12568800pab.0 for ; Tue, 31 Dec 2013 00:34:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kEglKBZmmnxKqeOtNfHM1/wcB2hafmMIXT3iYAIo7pE=; b=iQqLn3pKnSCf38g7ihUVC+66HRBUejY6+vNzI9mdnaIrkT5v7n8bIwHIMeMGY0hJIv B/GTxQRccpKBgOf7YLxF38s22WbEd41yL9LB5QJJC6yHlnKmHSL43TtgDExydnCUNSCF PmVNd+wMaWfAUombg1/0OjkgUYxBmGEO5jswjsV7g2cUzLAqW5Sejx1wXdQuEIwDyNp+ 4czCc3Ju0DiZZUryIOUYiJHjYJ1dUzOPcMyZbalW1Tprkrz0+C9yJ9wGI3xnitJXbXOf 4XDpyhBZZorb+ZljWbo7RrUHVOzSQCZbzWtWhhXLeRi2rFGRVi6EWWYU93UiU/65VzYC IW6A== X-Gm-Message-State: ALoCoQl5f00wlskz9NmEAVutnFsdzfTQ2V8WLMwL2DplZuMapZKK4LuYbVSqTV3e5BYDLDNFaMf+ X-Received: by 10.66.191.42 with SMTP id gv10mr15537212pac.125.1388478858005; Tue, 31 Dec 2013 00:34:18 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id g6sm113723358pat.2.2013.12.31.00.34.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 31 Dec 2013 00:34:17 -0800 (PST) From: Sachin Kamat To: linux-spi@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, broonie@kernel.org, kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] spi: s3c24xx: Remove reference to plat/fiq.h Date: Tue, 31 Dec 2013 14:00:39 +0530 Message-Id: <1388478639-25279-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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.0 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 fiq.h contains only a function declaration and is not used by anyone else. Move the declaration to the driver header file and remove the unnecessary platform dependency from the driver. Signed-off-by: Sachin Kamat --- arch/arm/plat-samsung/include/plat/fiq.h | 13 ------------- drivers/spi/spi-s3c24xx.c | 2 -- include/linux/spi/s3c24xx.h | 2 ++ 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 arch/arm/plat-samsung/include/plat/fiq.h diff --git a/arch/arm/plat-samsung/include/plat/fiq.h b/arch/arm/plat-samsung/include/plat/fiq.h deleted file mode 100644 index 535d06a35628..000000000000 --- a/arch/arm/plat-samsung/include/plat/fiq.h +++ /dev/null @@ -1,13 +0,0 @@ -/* linux/arch/arm/plat-samsung/include/plat/fiq.h - * - * Copyright (c) 2009 Simtec Electronics - * Ben Dooks - * - * Header file for S3C24XX CPU FIQ support - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -extern int s3c24xx_set_fiq(unsigned int irq, bool on); diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index 2ccb28d57ba9..746424aa5353 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c @@ -29,7 +29,6 @@ #include -#include #include #include "spi-s3c24xx-fiq.h" @@ -84,7 +83,6 @@ struct s3c24xx_spi { struct s3c2410_spi_info *pdata; }; - #define SPCON_DEFAULT (S3C2410_SPCON_MSTR | S3C2410_SPCON_SMOD_INT) #define SPPIN_DEFAULT (S3C2410_SPPIN_KEEP) diff --git a/include/linux/spi/s3c24xx.h b/include/linux/spi/s3c24xx.h index c23b923e493b..ca271c06c591 100644 --- a/include/linux/spi/s3c24xx.h +++ b/include/linux/spi/s3c24xx.h @@ -23,4 +23,6 @@ struct s3c2410_spi_info { void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); }; +extern int s3c24xx_set_fiq(unsigned int irq, bool on); + #endif /* __LINUX_SPI_S3C24XX_H */