Received: by 10.223.176.46 with SMTP id f43csp549654wra; Wed, 24 Jan 2018 02:16:08 -0800 (PST) X-Google-Smtp-Source: AH8x2256Bh70TdrYrP6fytqeZGBeiHGzoxrtbW6hGs9ysEPM9VwbsKCvlSS71yQCQ32WRDCSI+AJ X-Received: by 10.99.111.71 with SMTP id k68mr10203909pgc.360.1516788968303; Wed, 24 Jan 2018 02:16:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516788968; cv=none; d=google.com; s=arc-20160816; b=Cvk3/5HgnyX1dQ1GHecZWm/zkl1YM4gEkO4xijrBp/K32F5hgKjyuwNURYEkqtg8TL JeCUz35J58xHsj2tYsmE95bx6F7eUBQnR5CmklzsOlBUsFQMNgmARbXMrYsUBSb9C7/g XmM7GoLfOx1AN34+q62jzwVyolBae7cJvA1F0yk5NIjAJ6lU7z53cEcTSMWMKXbqVMMN o/RbaXGIobDJBkLKJUgI2rTXBotW059DpprOAmXclfQEk3TWWVRO582ceVbXpEbOUXMQ g2KOfCpPV+EqQEkl0QUrT4NGjPP0VtLGc8keFkf4kRarUs7m++74kEsIz/2JVPupLDDi VmzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=iuIYDAQBCrMg3vmOrt9uPrXDFFBOc4n8FVuv3b9OVao=; b=XSlO9fYLoBCmZms9zjOC9rlk2FA7/Wpf9JHfAIvCr3SspTH98frQPcF51ostvKoa+Y JgZ3o7QfIRk8VtSFwyxp1WiYl2wEnYSrmZyLrCF5RZbtkwYmrsg9ae+4O/m1gBzPasQv VnDzvLFDhMudsJwiHHxa8iUrqxmH0C1u7KDnv2pcOUihSJOlh33OzPWLHVU4u80jhuUX xKtIbrNt1IMm54uk9DuRuFcOQ8jROXXTDl9AkTijENx56iHS+bzd1baIYVABuCLfivT6 rf3VKQHHrgT9Hbpyd04gVajBWd4RAr9njObAoYK/YxWDTPeUXHbFh8fahakV7DQOFUdd L/TA== 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 d2-v6si3198330plh.27.2018.01.24.02.15.54; Wed, 24 Jan 2018 02:16:08 -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; 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 S932968AbeAXKPF (ORCPT + 99 others); Wed, 24 Jan 2018 05:15:05 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:60430 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932833AbeAXKPD (ORCPT ); Wed, 24 Jan 2018 05:15:03 -0500 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990474AbeAXKG61aDAV (ORCPT ); Wed, 24 Jan 2018 11:06:58 +0100 Date: Wed, 24 Jan 2018 11:06:57 +0100 From: Ladislav Michl To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Thomas Gleixner , Tom Lendacky , Borislav Petkov , Ingo Molnar , Lorenzo Pieralisi , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman , Boris Brezillon , Dmitry Torokhov , Bjorn Helgaas , Wei Yongjun Subject: [PATCH v2 1/3] devres: Move devm_ioremap_resource() out of device.h Message-ID: <20180124100657.GB19593@lenoch> References: <20180124100604.GA19593@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180124100604.GA19593@lenoch> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move devm_ioremap_resource() out of device.h into io.h to be consistent with similar APIs. Signed-off-by: Ladislav Michl --- Changes: - v2: new patch include/linux/device.h | 2 -- include/linux/io.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/device.h b/include/linux/device.h index 4d88b6b9cda9..c9fcee2f5b91 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -683,8 +683,6 @@ extern unsigned long devm_get_free_pages(struct device *dev, gfp_t gfp_mask, unsigned int order); extern void devm_free_pages(struct device *dev, unsigned long addr); -void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); - /* allows to add/remove a custom action to devres stack */ int devm_add_action(struct device *dev, void (*action)(void *), void *data); void devm_remove_action(struct device *dev, void (*action)(void *), void *data); diff --git a/include/linux/io.h b/include/linux/io.h index 32e30e8fb9db..2aea3363bfb2 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -79,6 +79,7 @@ void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, resource_size_t size); void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, resource_size_t size); +void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); void devm_iounmap(struct device *dev, void __iomem *addr); int check_signature(const volatile void __iomem *io_addr, const unsigned char *signature, int length); -- 2.15.1