From: Emil Goode <emilgoode@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [PATCH 3/3] spi: spi-txx9: Fix warning by including linux/gpio.h
Date: Tue, 30 Jul 2013 17:35:37 +0000 [thread overview]
Message-ID: <1375205737-3468-3-git-send-email-emilgoode@gmail.com> (raw)
According to the following commit direct inclusion of asm/gpio.h
is deprecated.
7563bbf89d065a2c3f05059ecbcc805645edcc62
("gpiolib/arches: Centralise bolierplate asm/gpio.h")
This patch fixes the below warnings by including linux/gpio.h.
arch/x86/include/asm/gpio.h:2:2: warning:
Include linux/gpio.h instead of asm/gpio.h
In file included from drivers/spi/spi-txx9.c:29:0:
arch/x86/include/asm/gpio.h:2:2: warning:
#warning Include linux/gpio.h instead of asm/gpio.h [-Wcpp]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
---
drivers/spi/spi-txx9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c
index e9b7681..7c6d157 100644
--- a/drivers/spi/spi-txx9.c
+++ b/drivers/spi/spi-txx9.c
@@ -26,7 +26,7 @@
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
-#include <asm/gpio.h>
+#include <linux/gpio.h>
#define SPI_FIFO_SIZE 4
--
1.7.10.4
next reply other threads:[~2013-07-30 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 17:35 Emil Goode [this message]
2013-07-30 20:48 ` [PATCH 3/3] spi: spi-txx9: Fix warning by including linux/gpio.h Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375205737-3468-3-git-send-email-emilgoode@gmail.com \
--to=emilgoode@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox