Received: by 10.213.65.68 with SMTP id h4csp441551imn; Fri, 16 Mar 2018 07:54:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELswbWOIUt7ydP8daOl3gNsH1GvKY5aF8+zJ1f4AYis2Ubw7VpJOFBVdwl3Rhz8lFRbcswmW X-Received: by 10.99.177.66 with SMTP id g2mr1674640pgp.425.1521212043678; Fri, 16 Mar 2018 07:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521212043; cv=none; d=google.com; s=arc-20160816; b=g1kShMJ0ksdTgXlI5cKnNFVrSpy2YW6f9nCQdY2h3EJ/9ToIbgWXbp4WbRbhxX0NFi 4LfYCRkRk5eFyial9i5sawfSNDL1ool8ehZ7RnAHxI+fLALz8MuWCDgUsYfOnpboXBpm JfyeKgqrdUyLhPUeBGuTj1gnNAgmsjCLullax8woJhsyUUdEFrJDGajsAwXmvOw+IOIc QdmlFboNfS2qVmMO6bpmt8I4BqYUFkJ7eHbr0OMCYx2bumvYGNCWBXFbKG2KAKWmffca MmLpuLspVS85YiF7ZdQWKq5YZ7puBbr5RZx+W8fZISaLAxwQaEY7Dug2oCZ69KPsFZaw THLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=VD0LsQTCkd+4nnYDMotVHkxP1x8NGl1kasUU5ogUj4E=; b=n7HYIISw8k3Ez/K1YJfEtg3v+Pi7JfktKSokm5LzIRzGVl7tFzPnrJasTt707FOIJG 7xC4hUfD3IUoi4rp17NtFpWvPMtvZlYr13uYEDhfzt8rfg6QOVildIXThByvsQVGoenO RbdYfZKcjtpUHnrUvyt+eIyxLFjpTe3gn6QMsevMi0gdnRwdiDi7F1X4+r1ecQylRRKR LTOt+sEyZFACvCAdaX9f1boKLfANBwF/h4vePOax8hXDW2DgKuxsBKowslUUBF0cn9GU 9IcgyznikJIfGUQLVarpEQrqKgVQcbmvRY2Y0nFYq4699707WNdp3LvptfbHK3keUeTx rKtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si4198543pfj.289.2018.03.16.07.53.49; Fri, 16 Mar 2018 07:54:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753597AbeCPOvh (ORCPT + 99 others); Fri, 16 Mar 2018 10:51:37 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:48516 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbeCPOv2 (ORCPT ); Fri, 16 Mar 2018 10:51:28 -0400 Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Nepk1x00b3XaVaC01eqd9i; Fri, 16 Mar 2018 15:51:27 +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 1ewpm1-0000QI-7d; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001Gm-0E; Fri, 16 Mar 2018 14:51:57 +0100 From: Geert Uytterhoeven To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Felipe Balbi , Greg Kroah-Hartman , "James E . J . Bottomley" , "Martin K . Petersen" , Andrew Morton , Mark Brown , Liam Girdwood , Tejun Heo , Herbert Xu , "David S . Miller" , Bartlomiej Zolnierkiewicz , Stefan Richter , Alan Tull , Moritz Fischer , Wolfram Sang , Jonathan Cameron , Joerg Roedel , Matias Bjorling , Jassi Brar , Mauro Carvalho Chehab , Ulf Hansson , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Boris Brezillon , Richard Weinberger , Kalle Valo , Ohad Ben-Cohen , Bjorn Andersson , Eric Anholt , Stefan Wahren Cc: iommu@lists.linux-foundation.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-block@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 07/21] i2c: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:40 +0100 Message-Id: <1521208314-4783-8-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> References: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy --- v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/i2c/busses/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index e2954fb86d659f36..2ce9bbd5d56ed06a 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -725,7 +725,6 @@ config I2C_MPC config I2C_MT65XX tristate "MediaTek I2C adapter" depends on ARCH_MEDIATEK || COMPILE_TEST - depends on HAS_DMA help This selects the MediaTek(R) Integrated Inter Circuit bus driver for MT65xx and MT81xx. @@ -903,7 +902,6 @@ config I2C_SH7760 config I2C_SH_MOBILE tristate "SuperH Mobile I2C Controller" - depends on HAS_DMA depends on ARCH_SHMOBILE || ARCH_RENESAS || COMPILE_TEST help If you say yes to this option, support will be included for the @@ -1106,7 +1104,6 @@ config I2C_XLP9XX config I2C_RCAR tristate "Renesas R-Car I2C Controller" - depends on HAS_DMA depends on ARCH_RENESAS || COMPILE_TEST select I2C_SLAVE help -- 2.7.4