Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp501024pxu; Thu, 3 Dec 2020 05:55:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSA8Y8jsKzTlPnSob1aHkPoF6diRFNOhrskB1WF0NEicJDoh4cfOmfHDU68w0tVSVZmSWb X-Received: by 2002:a17:907:3da3:: with SMTP id he35mr2647126ejc.9.1607003758233; Thu, 03 Dec 2020 05:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607003758; cv=none; d=google.com; s=arc-20160816; b=tcOKqTnwJwcYRcfJtY9v3HZfkyqnfJTH2zdG914Jyk+x+lTho8TmQhyn7UBXOpfho1 TDaIDhddjE61/hP5yLnj37+CJrMICvbu8Q6aIKqD/nRl+ZsiNILwCniDCFUt6m2TO1Xk ZRbg9fIngXkvtFMwnrQNevK58ClKf4UTxgZbXE4xHfz7SGpfQ3N6q+u+14sxynEaRgdI AkXhw/lhUlfvT9H9+Ur9XRyT6sXgffQh5F85tHIA4dWM3EVY406+10iAvPnV7Z+uwEhk fNtLo/FrOvjVZr/xl7aYyVh3V72eGuZrDPJnKfMEv5a7+jTNXicUuHvM4kvo7MU62O4n yHPQ== 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=Eh5H4XfwZs040t2uctL2FfvsD4ZDv2rh8FzU3DEXfV4nz9Jb2tfzywVH6G/NsreQsx csQt1Sm6A/fn5TnEXM3Z3ZXM4Zd06rjjt0ReXkDJ2s3YHhjXpUsCGbfZZ1qbI0V2ew6D wtP3LxNtNbxcgN83NWrjCWvq0Q6CRsYW7gLM6R19laG2uvKgPyOaMPRznSInpDfWUakz ZcxlfsT1UqIbX+QYhh6/Ax9mHV98YtGQ3YDLxVQR5KJoEia+kYK7IwmZf9Ycbxn7RWFO XOdPg1rN2bX01gdz/l0wPNEtuMzjfwJOqf+Z52sxZr/SnHP4U3ranbhPNy0w7cOKX/sH DmSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium.com header.s=google header.b=dSHcHuRE; 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 l8si1138083ejp.707.2020.12.03.05.55.34; Thu, 03 Dec 2020 05:55:58 -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=dSHcHuRE; 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 S1730732AbgLCNwO (ORCPT + 99 others); Thu, 3 Dec 2020 08:52:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbgLCNwO (ORCPT ); Thu, 3 Dec 2020 08:52:14 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18005C08C5F2 for ; Thu, 3 Dec 2020 05:50:56 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id r5so2115557eda.12 for ; Thu, 03 Dec 2020 05:50:56 -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=dSHcHuRESYLtlZtJIQdqGBUk0OZD2FHTCPmivLVjMLany23ElrfmjTJ5QNuXbr51/t FAxaJiOYERb1JckT6NM6S5qBJkYfbIUgnWBr4SIUckpOfvLa6FerK5Gy+XHNksXuEhji IRB+aPMkqGj4Xfr1m7rQx/u/2zCNvktGFS/Ziayy1AUQy0ExZC5TFSmTaPIsCIyW30Lf XE48qB6V1B8IltXD7ldz7T/LZ3qND7n05B7pijClTcATNDO4+hbMCCP6baNAIgZHbMRk afbgWtuUmLykXV0VbY4D2uJSS5hMGsoU3b5VKHHBMsFEuuqFAw96/D3jEBv5b4MBHdUL osgA== 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=V4SG7hIRMqaBeA52ICm5Cbcb+66+hfYCayN+12swHvt0MP4shrW2S+2aGUiUrUI2mY zUAFW1Py8DFEWFrTkuBAvhhS7oNizo91RtTYEVAD3HQYQJhH1EgHqHbsi56KtSmbjD1X /US8exvF68cmEUcCewKGETGouC9naaNAeODU3+EwkQE5sx0vzaQJ+9mG+ITWyMMGBhSW zxp4FeJ+QRySo5YSkYI2OpHcaPmvQzIjMgmEJSMWsvWqUQBX3GDNdihIkIIDvgOlJmxC xmZWN/TzROLBSD+XFTjNNyaGaujsAM8jskuZ3Wi1tLPj0nEhxDFD5wkiio3klABUVSe2 Lfbw== X-Gm-Message-State: AOAM5305P8L0eNDJEvbKWLdoTeq0oANqcSONkGLniKn2dVsXQ5EG2f+w Z30FN3h3f696aozGbT6zSzfeTQ== X-Received: by 2002:a50:b404:: with SMTP id b4mr2873495edh.369.1607003454809; Thu, 03 Dec 2020 05:50:54 -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 t19sm903192eje.86.2020.12.03.05.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 05:50:54 -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 net 3/4] net: freescale/fman-mac: remove direct use of __devm_request_region Date: Thu, 3 Dec 2020 14:50:38 +0100 Message-Id: <20201203135039.31474-4-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201203135039.31474-1-patrick.havelange@essensium.com> References: <20201203135039.31474-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