Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3715720imc; Thu, 14 Mar 2019 03:45:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzjDGpxR5ECfHUQOMH2ZwY+z8JWu0AuhN4MEI/gsYZy3Jqr0HO0+eYJlG5UPUJ0P1aGrhK X-Received: by 2002:a63:ea52:: with SMTP id l18mr44821986pgk.317.1552560312514; Thu, 14 Mar 2019 03:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552560312; cv=none; d=google.com; s=arc-20160816; b=uzFcUR4nOZ0Imzc3GLHOIAXBFlCxLbwxf/r4KBv/HRVI6fmTfh57yum2pHTuUOru+I bJhxdEzmM/O/tn4d8ZfHof8WmlrQCUcNPYsyS0JeVHIg28QjKiAXcffzJyssj8OBKqKK ETXibV//DOgVaGqPLEmnD1tnaW9NjkbpTi+40kjRrUNqcC6/hq/jNCrjg12akK4HKI9F /TQHIvJxRKC+TGoTt5AVOqZaLIwElz59XTktGKZH5ZKYcDZr/+i2e3kHyTfIm22BmPsv Ero92DLYbSM1Jju4X8/svSoxENmH+xQ4XWYwb9jvjY2kKnIrP2+SYGHkyH9mvcatdh8p NcMQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GAjC5l57/8fSJx9tJ+c2oVjaNgQVjJ2OvdGfyncv3nY=; b=Fr3caTdRO/DpX9CPYtbJyIDVGXftwuQgkoECYnq4sVlTLeyF9VHUyDBBVelym9WXky Y9T8VwAIhHvx+MRcZKaXbDUakX+yCc2Eu1wxyEXAGr0J7JQdqqw12YXJtZEcWH3VLOSv F5YxmJc3HyZYuujbXTL2oAVy7prqboh1ZSuDn+/XUURxVYghQVrGDUK/Gvyx4P00yKkE 9vvcSMxF0lIh24epGsyKwYDEp/MEIaBlM9WvChlUgmzNBnfcdIQ8Xj1SwwnUBHsL4/Ik lxSwVQvqzfA80gprxkWT3prEpov4Lb5n8jw28wseW5O9taYPy96/+Ypu8oNWM9gmsQFY 2TdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YB+ceC9T; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d186si12856821pfg.50.2019.03.14.03.44.57; Thu, 14 Mar 2019 03:45:12 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YB+ceC9T; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727440AbfCNKny (ORCPT + 99 others); Thu, 14 Mar 2019 06:43:54 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38856 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbfCNKny (ORCPT ); Thu, 14 Mar 2019 06:43:54 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2EAhnGx014078; Thu, 14 Mar 2019 05:43:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552560229; bh=GAjC5l57/8fSJx9tJ+c2oVjaNgQVjJ2OvdGfyncv3nY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=YB+ceC9TODQDynxI6NRbbJutZy3mq1zZcqyvcaLUKkVnH+WciSIZshcX0BcOow9vb ATeR6RZN4XjR5CYDdq9P2YPC0XyeGq6mAI3dRvZm+4CigIAyuh90QznEOTIy6wzbAR TfB0ocRcPiv0T0uodt6A/d+T7tTeN0gw2Kp83Gao= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2EAhnuq113507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2019 05:43:49 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Mar 2019 05:43:49 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Mar 2019 05:43:49 -0500 Received: from [172.22.128.177] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2EAhk7i024057; Thu, 14 Mar 2019 05:43:47 -0500 Subject: Re: [PATCH] drivers: gpio: omap: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" , CC: , , , , , References: <1552333805-23235-1-git-send-email-info@metux.net> From: Grygorii Strashko Message-ID: Date: Thu, 14 Mar 2019 12:43:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1552333805-23235-1-git-send-email-info@metux.net> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.03.19 21:50, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-omap.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c > index 7f33024..ce6e67a 100644 > --- a/drivers/gpio/gpio-omap.c > +++ b/drivers/gpio/gpio-omap.c > @@ -1289,7 +1289,6 @@ static int omap_gpio_probe(struct platform_device *pdev) > struct device_node *node = dev->of_node; > const struct of_device_id *match; > const struct omap_gpio_platform_data *pdata; > - struct resource *res; > struct gpio_bank *bank; > struct irq_chip *irqc; > int ret; > @@ -1375,8 +1374,7 @@ static int omap_gpio_probe(struct platform_device *pdev) > raw_spin_lock_init(&bank->wa_lock); > > /* Static mapping, never released */ > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - bank->base = devm_ioremap_resource(dev, res); > + bank->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(bank->base)) { > return PTR_ERR(bank->base); > } > Acked-by: Grygorii Strashko -- Best regards, grygorii