From patchwork Sun Sep 21 04:32:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 391639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A870314012C for ; Sun, 21 Sep 2014 14:33:05 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751135AbaIUEdF (ORCPT ); Sun, 21 Sep 2014 00:33:05 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:42322 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbaIUEdE (ORCPT ); Sun, 21 Sep 2014 00:33:04 -0400 Received: by mail-pa0-f53.google.com with SMTP id hz1so2490126pad.12 for ; Sat, 20 Sep 2014 21:33:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=+Q3Tiy05kqLlvTZZcMib3nPPPdssN0PAQaS+BH4Frkw=; b=gcrFUwB0Pb6mCCBiu0NUCot/pzvAALsShOwmAh0HYPDmU8H4/zwwjlO18UFqs1o6ty vByPDAhKJzgWxX6uYbEDlbmkjpc9+5gkmx4EI+5FvxVjpat3c7aZKf8pCKNnuTcHOQmh 5g9zEIUE8cifdkgFtlZ2+Ut4d6vwCLWjQhmxpcKbAa8OoSd+783EXSFgZ3lxIBswh5xV Le/gQWtBbSv7mNMFEzKS785FY/yjwnOoKsafPVUaDVpJRRKawwONBQYCoE1guKVaWf77 BPSv92GQHEW6zbzlNets7E3katBxGk/BXOF+jwmbmmOHt0ICuf0H+I+OuPSbfIqTkTaa s2Fg== X-Gm-Message-State: ALoCoQmkdCKJZaTWOX1T62QY4adnVIismR/6UCLqI5MSW4bjogs9NFmvCwGHXkMQNyfpwFrJb5LC X-Received: by 10.66.66.193 with SMTP id h1mr14742719pat.93.1411273983301; Sat, 20 Sep 2014 21:33:03 -0700 (PDT) Received: from [192.168.0.105] (218-164-148-131.dynamic.hinet.net. [218.164.148.131]) by mx.google.com with ESMTPSA id x3sm5817437pdq.10.2014.09.20.21.33.01 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 20 Sep 2014 21:33:02 -0700 (PDT) Message-ID: <1411273979.20539.2.camel@phoenix> Subject: [PATCH 3/3] gpio: xgene: Remove unneeded #ifdef CONFIG_OF guard From: Axel Lin To: Linus Walleij Cc: Feng Kan , Alexandre Courbot , "linux-gpio@vger.kernel.org" Date: Sun, 21 Sep 2014 12:32:59 +0800 In-Reply-To: <1411273889.20539.0.camel@phoenix> References: <1411273889.20539.0.camel@phoenix> X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This driver depends on OF_GPIO, so it won't be built if !CONFIG_OF. Signed-off-by: Axel Lin --- 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 = {