Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp989952pxu; Wed, 2 Dec 2020 08:20:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEvI5ed+1+adWAKGlpx9pVC4f05mdra696KuVi6m9d92R2w292dk/uAPaNBz8h7wwW5mbA X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr680664edb.308.1606926021489; Wed, 02 Dec 2020 08:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606926021; cv=none; d=google.com; s=arc-20160816; b=eng03eoFm3vB6Vo70nOEbT2C5zollWPhWcZHDgv9cRt3t26BXssiZ0EyTi0w5Seyww wPcAaVLgJ7jDWm7x+z3rk1WEs0YY2xk4isxXfdHTZgnQ8TR5HOnoLbgje8Vi/auJ94gU YFz0mwAaFXfmbuckjMr+lk6uEtiFRjHlgFnoLEB2vKSdNZtYtHeJY0fWL2fShe1jX/8D XXGqD77zacBpfrkbFFMW3d4JXogYm/7xwJjIp8AfEpm2OBPN9U7b2ctXHE9kf2wNrmFW /ozDwXVZwpuLO2GS3jFyGCP8OUOZRkDjSgcQO+7ICSxaWAsJ2PuBBXEad2Mz/SX4Gu6w 6rnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=7cVseWE6MIn0vIOshUQxsts71GrP62tJMM0vJ2mEO6M=; b=j84tNEDEmoM5B2ZOOsrtAlmdZn0P8p4SJ3hA97jgnVzwzOkT6tk19tw/vKGGXFegL+ z9qCBPoftPn1nbYigZN8wvWor330mrB1bs6H8LlTIKPaWLyjS9rqETD5Z5jbRMfMQd4V 8K2K+UsuERo+K3zwMVZF3cK2lu/VRNF07tsS8IxM4kOc2ERIUKT8v7C+1kkBsKUDmQ7/ /Mefa4uB+gQS8FeLvmgUYLJBblOFmYDAj8OTVnWQNWDP/MTOvb3qyWvlFqIKeq+uuf4F RKQHfGwxQ59/Q+mT16+Xvo1J3l+EP6KmZYkogfvbYODi6ZAddYlovwcPRbaX3/jPqIZL OagA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium.com header.s=google header.b=JPMZDn1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=essensium.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si233251edt.290.2020.12.02.08.19.56; Wed, 02 Dec 2020 08:20:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@essensium.com header.s=google header.b=JPMZDn1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=essensium.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389065AbgLBQRO (ORCPT + 99 others); Wed, 2 Dec 2020 11:17:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389060AbgLBQRO (ORCPT ); Wed, 2 Dec 2020 11:17:14 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE460C061A04 for ; Wed, 2 Dec 2020 08:16:19 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id 23so4585270wrc.8 for ; Wed, 02 Dec 2020 08:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7cVseWE6MIn0vIOshUQxsts71GrP62tJMM0vJ2mEO6M=; b=JPMZDn1Q25wUvfxd5NHJUlgs/Y8PdFBXa/MVT0UhCfSDQfXICkj59GPnUm3wuozxG4 UZ+ZjahG2yZHm8StlaVRYK+lgGj/uTSVF8EBVRoTLCOHYONUqktFbinfdcfvMPQXiXQB Fs/eqX57ZpU+WU2wHITndg3sXuIWc4YBUenchkoNPvGD2AAsu1/8l/FCFYUm9odgVGLB 1AfmO8klAYMdu9+BdSrjmcI3CIVaAAT8apQZTdlJLyYB01vOUnvKTTP+/L78HE6DkqK5 VI7i96lWnrmSvyHdZXoSxtRgLstxqO9zW0eXwVVgC98IXrcdCdAPPnBjWDYATo89qwDL 4WbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7cVseWE6MIn0vIOshUQxsts71GrP62tJMM0vJ2mEO6M=; b=pHgVvLw2eEc9CXAe2jFmWfbLh5o7k9c0YkBEWo0T518LYLZdHfbLxhAvtk1w6NbKAn jGPcM3DAenW0Izs2KN6PnIh7mkCMl7/uayHqJClR1BQEJPL93upVFm7e0R4tTk5j5ZU6 jPkefX8gij88btyMeaJ8RNST6+6O2CPyPPvTTgbn3XN3ixaDIfRafRXdfSNOOv0QMV2l OL+tp3b85lbp5xTAfwQnMCUc+hJcSa1eDCdPfBn1lyWGayXTUacORTxzr/R8/LGA/qAN S0DycGSQQ4aLClg1BModcvDTA0TSwkiWUokFz1WJ5lIzEfKM+W9bKnG6Y63HgJDth5xP ePoQ== X-Gm-Message-State: AOAM530ARNM/tglsV3tVJGNiV23MvaOZgEV91WnBqn3CXdNC0V/hVvzz 85Y+Vm7PK2q/iOTiV5Kw6fdULA== X-Received: by 2002:adf:e44d:: with SMTP id t13mr4422657wrm.144.1606925778652; Wed, 02 Dec 2020 08:16:18 -0800 (PST) Received: from belels006.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id s4sm2644505wru.56.2020.12.02.08.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 08:16:17 -0800 (PST) From: Patrick Havelange To: Madalin Bucur , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Havelange Subject: [PATCH 3/4] net: freescale/fman-mac: remove direct use of __devm_request_region Date: Wed, 2 Dec 2020 17:15:59 +0100 Message-Id: <20201202161600.23738-3-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201202161600.23738-1-patrick.havelange@essensium.com> References: <20201202161600.23738-1-patrick.havelange@essensium.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the main fman driver is no longer reserving the complete fman memory region, it is no longer needed to use a custom call to __devm_request_region, so replace it with devm_request_mem_region Signed-off-by: Patrick Havelange --- drivers/net/ethernet/freescale/fman/mac.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index 901749a7a318..35ca33335aed 100644 --- a/drivers/net/ethernet/freescale/fman/mac.c +++ b/drivers/net/ethernet/freescale/fman/mac.c @@ -690,12 +690,10 @@ static int mac_probe(struct platform_device *_of_dev) goto _return_of_get_parent; } - mac_dev->res = __devm_request_region(dev, - fman_get_mem_region(priv->fman), - res.start, resource_size(&res), - "mac"); + mac_dev->res = devm_request_mem_region(dev, res.start, + resource_size(&res), "mac"); if (!mac_dev->res) { - dev_err(dev, "__devm_request_mem_region(mac) failed\n"); + dev_err(dev, "devm_request_mem_region(mac) failed\n"); err = -EBUSY; goto _return_of_get_parent; } -- 2.17.1