From patchwork Tue Jan 30 13:21:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 10191807 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 83D9860375 for ; Tue, 30 Jan 2018 13:21:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7430028396 for ; Tue, 30 Jan 2018 13:21:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 674AC2884A; Tue, 30 Jan 2018 13:21:55 +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=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCF8828396 for ; Tue, 30 Jan 2018 13:21:54 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 913E12675F4; Tue, 30 Jan 2018 14:21:53 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5265A2675FC; Tue, 30 Jan 2018 14:21:52 +0100 (CET) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) by alsa0.perex.cz (Postfix) with ESMTP id C1F89267232 for ; Tue, 30 Jan 2018 14:21:50 +0100 (CET) Received: from ayla.of.borg ([84.194.104.20]) by xavier.telenet-ops.be with bizsmtp id 4dMn1x00f0SRDqC01dMnZe; Tue, 30 Jan 2018 14:21:47 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1egVr9-0002li-HD; Tue, 30 Jan 2018 14:21:47 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1egVr9-0003pC-G7; Tue, 30 Jan 2018 14:21:47 +0100 From: Geert Uytterhoeven To: Jonathan Cameron , Arnaud Pouliquen , Mark Brown Date: Tue, 30 Jan 2018 14:21:46 +0100 Message-Id: <1517318506-14664-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 Cc: linux-iio@vger.kernel.org, alsa-devel@alsa-project.org, Geert Uytterhoeven , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/iio/adc/stm32-dfsdm-adc.ko] undefined! Add a dependency on HAS_DMA to fix this. Fixes: e2e6771c64625165 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Geert Uytterhoeven --- drivers/iio/adc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 39e3b345a6c84033..d976c64107c8e9fd 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -683,6 +683,7 @@ config STM32_DFSDM_CORE config STM32_DFSDM_ADC tristate "STMicroelectronics STM32 dfsdm adc" depends on (ARCH_STM32 && OF) || COMPILE_TEST + depends on HAS_DMA select STM32_DFSDM_CORE select REGMAP_MMIO select IIO_BUFFER_HW_CONSUMER