Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2594612imj; Mon, 11 Feb 2019 05:36:50 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia6a86GVwBOYGegltLKVV9kYKO8ylTGNkHfNb/B7quIdp7A7cQw0X8stifycmoQWvvX7e1V X-Received: by 2002:a65:46c9:: with SMTP id n9mr9853779pgr.254.1549892210752; Mon, 11 Feb 2019 05:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549892210; cv=none; d=google.com; s=arc-20160816; b=ghga/3MCaKfH9kZHT45GmDynvJN/en4roWZYBuXwufTB3NRQm4qNDITer14SpGeaFR H4W7xuZtNSSP1FAShoQWPRYD+srxoWzT+yuuk0poFvXEWy6eILuFnVM4xs5CZI+IA3fS AcvFTEVbwHK0VtunfhH7q66Of18cbDAO+ymxYT0Esryfbj74NFeR2fWyy1W8ENeivGYb Y8V/rFQsxDUuYWTkiTgbXKrmSZkUkpmM+T8dJqVUlxMT0bqs9Y/mCKhfkIew0D0SF+9H drSadGWWTt51ej1wOOFrw+rcgAlCdk2YUJVghLOuADPFWSWqzNmhxanRIxf6yMUpvdWG MBMQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PXEKrNVlSwSD44MLHVfYVpXgllDl8h1AQx+K1N1fGdg=; b=Ju6eYlslFMA4050Dyoj+eLKLwkXNtH7UM6m3x8alKwfjOn0seYwR9ONN8m+rtf9o+u T+SYhyVqvJPlm8mrf9yDPQAvpfK6QG7/UGXwxPOFAVtVDz310bugGQrrGYL8ckMVkMUP bhgSlm5FQIHjJrZRSYWf+Vy36dc5QpljYeapYU7EgLJ9c5BfRjQEUa2o9XlErlrUfrjJ 0TN4bg6RWTn6+HWxFlaLucWqnIhcWS9R1tC8IFdJm87qZWlA5H2dRYoa1tKYioosS2Eh b3ZORtPmjqfrBPythIi5Gbl8WZIEIx3jN65MwEB4E7HR6T4G82THU98lsSF+J4XBJAss YFoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ay3OBcjK; 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 j22si9719375pfi.252.2019.02.11.05.36.34; Mon, 11 Feb 2019 05:36:50 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ay3OBcjK; 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 S1728069AbfBKNgN (ORCPT + 99 others); Mon, 11 Feb 2019 08:36:13 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46152 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727106AbfBKNgM (ORCPT ); Mon, 11 Feb 2019 08:36:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PXEKrNVlSwSD44MLHVfYVpXgllDl8h1AQx+K1N1fGdg=; b=ay3OBcjKrfnFrYuWalfKgKQUGs M7qMzn7Ynef+iX/JVSOJuErDpLeo8UZlfGl0TI28lnWbWgnQV8iX+BKm4QNYh8y6gs4ngRiO6/cal uZizUblwLUd+EjynLyx+rgRZMRoTM4JXM07Tncgt14AiM0FvoiOCE5xp4e8speTc+0CIlasqbKaqz a6i1PwT8t6m8rp62ZrnzVO5LsnBN8IixXSPSZDZbpefv3qu3qhG21FexSGBhSVPUgXCudOgf2HL8V k+UOBrDA/q+5/dKyqAjG0fv12f541spKtlER78+Qwfi/7vomQPcPCiy7bdMC2rp8qm+q1GzoLetJI YajgfT6Q==; Received: from 089144210182.atnat0019.highway.a1.net ([89.144.210.182] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtBkf-0008Lw-3f; Mon, 11 Feb 2019 13:36:01 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org Cc: Greg Kroah-Hartman , Lee Jones , x86@kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/12] mfd/sm501: depend on HAS_DMA Date: Mon, 11 Feb 2019 14:35:43 +0100 Message-Id: <20190211133554.30055-2-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211133554.30055-1-hch@lst.de> References: <20190211133554.30055-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the sm501 mfd driver can be compiled without any dependencies, but through the use of dma_declare_coherent it really depends on having DMA and iomem support. Normally we don't explicitly require DMA support as we have stubs for it if on UML, but in this case the driver selects support for dma_declare_coherent and thus also requires memmap support. Guard this by an explicit dependency. Signed-off-by: Christoph Hellwig --- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index f461460a2aeb..f15f6489803d 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1066,6 +1066,7 @@ config MFD_SI476X_CORE config MFD_SM501 tristate "Silicon Motion SM501" + depends on HAS_DMA ---help--- This is the core driver for the Silicon Motion SM501 multimedia companion chip. This device is a multifunction device which may -- 2.20.1