From patchwork Tue May 29 14:51:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 137172 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp4150743lji; Tue, 29 May 2018 07:51:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUstBZv6n6ZEIAKzaleK18QPJxUtMUAgNB3KqO+qEfFTaTjKTjtGRjq7Vw/Anygj7eP+h6 X-Received: by 2002:a65:4783:: with SMTP id e3-v6mr11146542pgs.235.1527605469588; Tue, 29 May 2018 07:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527605469; cv=none; d=google.com; s=arc-20160816; b=pFhFML/+88nivAjcwXM/zys8cBGblw6/Wkc4EMfBUvgbytOyhb4x0MeAHflpz55nHC POXAkq8Q3edJLStaJU+Is8FVoYvhYKjX0pxE5pZ0WwK10ciLVcKZfEvx4mPC9yXCrpr8 6kL39qCBAUnnw2d9ePtmvF8jRUuRTeRnZuJ2so4Fwqb2o0xnkPJ/WGHf5avE4Y0jSkSS w026UZT526dOd4zA//EtwG6ABzAbwssZ4bTh13u/LSgNAisDwC/JJF8RfCUeSbYi2MiL fpOaqifW14ujnQMm1DuxcblaucJU+jtVkysbxSSA0giaLYgA2ffnQjbevr6oqFfMIqHz 64/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ZUbibHkYV5WedfiNG8Q7U4PSO0BgwglEzEJNB7l/krA=; b=f98pLXlBXrABHJ6sK/Z6LLhH2d1Pi5+AydX6VLPbsZSYljzecIRHZrYzQYmfkzdSFZ TtZ0myaYOqiSnU7tM/a9NlGzq4rTrfcFQzPIGeLDxLyAwIsU9ZTyHE8yXOFYw8bouhwi 0ki1CuZt2B2ScLa/mvbf15cyLGl4AicXcGbISgJkF5vpVawUSDaFmv+BncjWCwXca5Ak il1Zaw5Rj7TALCxzCl2Ca5nSaV4Hx0PFr356CCwlJblBUjjiKOg+t4MwxHhbx+YyRF1s 7IAPfAYiBuyhwnkSvUjZo3GDxSvqgKqVF6DI3KXaK0bVp2Iv7ipFTRjSMwfMnreEpEUn jvig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Dwh8VIue; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18-v6si11008401pgd.689.2018.05.29.07.51.09; Tue, 29 May 2018 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Dwh8VIue; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935717AbeE2OvI (ORCPT + 5 others); Tue, 29 May 2018 10:51:08 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:62951 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935308AbeE2OvF (ORCPT ); Tue, 29 May 2018 10:51:05 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4TEp4tW004709; Tue, 29 May 2018 09:51:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527605464; bh=IkTriK3jVBrRNbVGmvWinst89+hHLoLb9nsesyphZlg=; h=From:To:CC:Subject:Date; b=Dwh8VIueA0+wl4/DITNIL7Vj3QwBnFY407DNGdhb+93Qkc/4NtoIDyzQ5yf/hydtY Ny8mZvYs6cwbtt7tzFRA+PW0URunoR6lgU678qJvaR3jbF0jynYcaxal3AxHzjK2Fg sngoM/Fpb+MR493NrL90RAkwxs0pDHTk88Tb8pNo= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4TEp4rB019859; Tue, 29 May 2018 09:51:04 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 29 May 2018 09:51:04 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 29 May 2018 09:51:04 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4TEp2aE005005; Tue, 29 May 2018 09:51:02 -0500 From: Sekhar Nori To: Keerthy , Linus Walleij CC: , , Sekhar Nori Subject: [PATCH] gpio: davinci: fix build warning when !CONFIG_OF Date: Tue, 29 May 2018 20:21:01 +0530 Message-ID: <20180529145101.20808-1-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This nukes the following warning that is seen when building without OF support: drivers/gpio/gpio-davinci.c:437:25: warning: ‘keystone_gpio_get_irq_chip’ defined but not used [-Wunused-function] static struct irq_chip *keystone_gpio_get_irq_chip(unsigned int irq) ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Sekhar Nori --- drivers/gpio/gpio-davinci.c | 2 -- 1 file changed, 2 deletions(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 987126c4c6f6..b574ecff7761 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -610,14 +610,12 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev) return 0; } -#if IS_ENABLED(CONFIG_OF) static const struct of_device_id davinci_gpio_ids[] = { { .compatible = "ti,keystone-gpio", keystone_gpio_get_irq_chip}, { .compatible = "ti,dm6441-gpio", davinci_gpio_get_irq_chip}, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, davinci_gpio_ids); -#endif static struct platform_driver davinci_gpio_driver = { .probe = davinci_gpio_probe,