Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3151524ybd; Fri, 28 Jun 2019 03:48:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkfZBtZMyk0f+Oiy1WJeFRDnrQkZSMCgF9vi6dmoSTe4JDy+RbGG/wOMnb3w1bwb+O67d8 X-Received: by 2002:a63:c60b:: with SMTP id w11mr8386258pgg.356.1561718906963; Fri, 28 Jun 2019 03:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561718906; cv=none; d=google.com; s=arc-20160816; b=ApeEo4Xw3BHVok/IlbXBdAWVbvRuDpMJLYV9clp6N1MhuwWoeG6wQ+k/onuMO8oc+e EE37P/8s7p+y7+bcx96+7bEDQEsNR9Rgncw/xADz47ufmtjh7z9p0OyWUZWyiBIAvRVz y5mFZUqWk8psk1+Pg7+IOVMULRWTtJUt8+VaMluP7uX0YA3i/1LobJXR3cSPuNCc1wTK +Oyh6AHAlmRZAl2b1JDVjJxlF0qvg9BlpHtpJ2MNEmwPMb443QHEH0+1gOebvSKX0efr 14ImjHaOow++i7d3siezDL/oSG5akGP4uPjR0RS//URNfoEvs1bOdeKLZqZeZMC9mo1W yYtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=NVinKh98jKS9zokr8ydHNCBWzDAiTD09mu2we75eaLU=; b=EiveEnmAKhXvccGQ0r8+zqXQXYwxRYxN9XncwElsvPAjPhCU9fqk+LoKaFqzmWgbbU DYZGmso9i89aQiBVEkP0MNhIgQzhQKq+IaVamu/FE5CBzxBeJFojuMf3r5/1e2Tqxtsk d0wmoM/DR58ATAFB2Iv/Kjsr5NuBB/QAy2TxQ9+QvhLmzQSVi4ZVbfLBOG/kSn8BkH5H auD3uxwKzGh/Y6muRj4s5h09kKQ1W763i7qvE/ZiPdJopGb/h5bNF6OeoiBqqNpQJqnW 6ElxEQ8Gaz/OZ3dSG38P8nGdzy1ODhFCI5r+QPpa/8Wp87cK6ovT328XQ+KflbMoE3w5 hKzA== 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 cd17si1896985plb.210.2019.06.28.03.48.10; Fri, 28 Jun 2019 03:48:26 -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 S1726694AbfF1Krn (ORCPT + 99 others); Fri, 28 Jun 2019 06:47:43 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42687 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbfF1Krm (ORCPT ); Fri, 28 Jun 2019 06:47:42 -0400 Received: by mail-qt1-f194.google.com with SMTP id s15so5695649qtk.9 for ; Fri, 28 Jun 2019 03:47:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NVinKh98jKS9zokr8ydHNCBWzDAiTD09mu2we75eaLU=; b=b7KdH0dc4Kegrewx4iQlsF7V5+KS+w3WYFfgdL3OgeN1CdfHy7vhlsmZJ6QS9gLVVC vi9LUbHvH4sSwfET53TilG4LLvmDXzFDciSHsxzQCaq2SyHGPr3rRSyh3l/b9uEuzcse BqTKXBcaSqWR6BrwUzKDtMk0WOfTKsJYk7ax0QQ8m6RyoxfjRfEk+mgOD0lyMi3cLD/J aDiO7Tz+U8OU53ukxfkrdxELjwJvwBhMhF5nEy7b6+PD6cGd1FMiwWY8m1vXvEXC9x1i dX2EizKv8GhIo1o+KxxPXfsAKzYXiIv76a9qd1yu6fEaj6yBOCt0/1ZFd33kuP8t1vrC iZlQ== X-Gm-Message-State: APjAAAVpj5bwilkz83iHGYYHJyMNIoyRNIURMNDnJzx6VJ8wW/bIGKbh JexUYeHxCRB84b1vvq9J7DWBuGcb430ujgzCcGiPXLLB X-Received: by 2002:a0c:ba2c:: with SMTP id w44mr7558111qvf.62.1561718861770; Fri, 28 Jun 2019 03:47:41 -0700 (PDT) MIME-Version: 1.0 References: <20190628104132.2791616-1-arnd@arndb.de> In-Reply-To: <20190628104132.2791616-1-arnd@arndb.de> From: Arnd Bergmann Date: Fri, 28 Jun 2019 12:47:23 +0200 Message-ID: Subject: Re: [PATCH] mfd: davinci_voicecodec: remove pointless #include To: Lee Jones Cc: Richard Fontana , Linux Kernel Mailing List , Sekhar Nori , Bartosz Golaszewski , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [I missed the davinci maintainers on cc here, sorry] On Fri, Jun 28, 2019 at 12:41 PM Arnd Bergmann wrote: > > When building davinci as multiplatform, we get a build error > in this file: > > drivers/mfd/davinci_voicecodec.c:22:10: fatal error: 'mach/hardware.h' file not found > > The header is only used to access the io_v2p() macro, but the > result is already known because that comes from the resource > a little bit earlier. > > Signed-off-by: Arnd Bergmann > --- > drivers/mfd/davinci_voicecodec.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/mfd/davinci_voicecodec.c b/drivers/mfd/davinci_voicecodec.c > index 13ca7203e193..e5c8bc998eb4 100644 > --- a/drivers/mfd/davinci_voicecodec.c > +++ b/drivers/mfd/davinci_voicecodec.c > @@ -19,7 +19,6 @@ > #include > > #include > -#include > > static const struct regmap_config davinci_vc_regmap = { > .reg_bits = 32, > @@ -31,6 +30,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev) > struct davinci_vc *davinci_vc; > struct resource *res; > struct mfd_cell *cell = NULL; > + dma_addr_t fifo_base; > int ret; > > davinci_vc = devm_kzalloc(&pdev->dev, > @@ -48,6 +48,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev) > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > + fifo_base = (dma_addr_t)res->start; > davinci_vc->base = devm_ioremap_resource(&pdev->dev, res); > if (IS_ERR(davinci_vc->base)) { > ret = PTR_ERR(davinci_vc->base); > @@ -70,8 +71,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev) > } > > davinci_vc->davinci_vcif.dma_tx_channel = res->start; > - davinci_vc->davinci_vcif.dma_tx_addr = > - (dma_addr_t)(io_v2p(davinci_vc->base) + DAVINCI_VC_WFIFO); > + davinci_vc->davinci_vcif.dma_tx_addr = fifo_base + DAVINCI_VC_WFIFO; > > res = platform_get_resource(pdev, IORESOURCE_DMA, 1); > if (!res) { > @@ -81,8 +81,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev) > } > > davinci_vc->davinci_vcif.dma_rx_channel = res->start; > - davinci_vc->davinci_vcif.dma_rx_addr = > - (dma_addr_t)(io_v2p(davinci_vc->base) + DAVINCI_VC_RFIFO); > + davinci_vc->davinci_vcif.dma_rx_addr = fifo_base + DAVINCI_VC_RFIFO; > > davinci_vc->dev = &pdev->dev; > davinci_vc->pdev = pdev; > -- > 2.20.0 >