linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Feng Kan <fkan@apm.com>, Alexandre Courbot <gnurou@gmail.com>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: [PATCH 3/3] gpio: xgene: Remove unneeded #ifdef CONFIG_OF guard
Date: Sun, 21 Sep 2014 12:32:59 +0800	[thread overview]
Message-ID: <1411273979.20539.2.camel@phoenix> (raw)
In-Reply-To: <1411273889.20539.0.camel@phoenix>

This driver depends on OF_GPIO, so it won't be built if !CONFIG_OF.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-xgene.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c
index cef92f4..82263e4 100644
--- a/drivers/gpio/gpio-xgene.c
+++ b/drivers/gpio/gpio-xgene.c
@@ -223,13 +223,11 @@ static int xgene_gpio_remove(struct platform_device *pdev)
 	return ret;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id xgene_gpio_of_match[] = {
 	{ .compatible = "apm,xgene-gpio", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, xgene_gpio_of_match);
-#endif
 
 static struct platform_driver xgene_gpio_driver = {
 	.driver = {
-- 
1.9.1




  parent reply	other threads:[~2014-09-21  4:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-21  4:31 [PATCH 1/3] gpio: xgene: Fix missing spin_lock_init() Axel Lin
2014-09-21  4:32 ` [PATCH 2/3] gpio: xgene: Remove unneeded forward declation for struct xgene_gpio Axel Lin
2014-09-24  9:02   ` Linus Walleij
2014-09-21  4:32 ` Axel Lin [this message]
2014-09-24  9:03   ` [PATCH 3/3] gpio: xgene: Remove unneeded #ifdef CONFIG_OF guard Linus Walleij
2014-09-24  9:01 ` [PATCH 1/3] gpio: xgene: Fix missing spin_lock_init() Linus Walleij

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=1411273979.20539.2.camel@phoenix \
    --to=axel.lin@ingics.com \
    --cc=fkan@apm.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@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;
as well as URLs for NNTP newsgroup(s).