From patchwork Thu Jan 18 23:44:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Diaz Riveros X-Patchwork-Id: 10174253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D75B3602DC for ; Thu, 18 Jan 2018 23:45:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2F9F28541 for ; Thu, 18 Jan 2018 23:45:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6B1728553; Thu, 18 Jan 2018 23:45:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5088628541 for ; Thu, 18 Jan 2018 23:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932696AbeARXpB (ORCPT ); Thu, 18 Jan 2018 18:45:01 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:35434 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932453AbeARXo3 (ORCPT ); Thu, 18 Jan 2018 18:44:29 -0500 Received: from gentoo.red.cuarto (unknown [181.67.35.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chrisadr) by smtp.gentoo.org (Postfix) with ESMTPSA id B8B55335C3A; Thu, 18 Jan 2018 23:44:26 +0000 (UTC) From: =?UTF-8?q?Christopher=20D=C3=ADaz=20Riveros?= To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, broonie@kernel.org, arnaud.pouliquen@st.com, arnd@arndb.de Cc: =?UTF-8?q?Christopher=20D=C3=ADaz=20Riveros?= , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH-next] IIO: ADC: drop unused 'of_id' struct Date: Thu, 18 Jan 2018 18:44:15 -0500 Message-Id: <20180118234415.32410-1-chrisadr@gentoo.org> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_STM32_DFSDM_CORE is enabled, stm32-dfsdm-core.o is compiled, which raises a next warning: drivers/iio/adc/stm32-dfsdm-core.c: In function ‘stm32_dfsdm_probe’: drivers/iio/adc/stm32-dfsdm-core.c:245:29: warning: unused variable ‘of_id’ [-Wunused-variable] const struct of_device_id *of_id; ^~~~~ Signed-off-by: Christopher Díaz Riveros --- drivers/iio/adc/stm32-dfsdm-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c index 84277bcc465f..6290332cfd3f 100644 --- a/drivers/iio/adc/stm32-dfsdm-core.c +++ b/drivers/iio/adc/stm32-dfsdm-core.c @@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match); static int stm32_dfsdm_probe(struct platform_device *pdev) { struct dfsdm_priv *priv; - const struct of_device_id *of_id; const struct stm32_dfsdm_dev_data *dev_data; struct stm32_dfsdm *dfsdm; int ret;