Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp501495pxu; Thu, 3 Dec 2020 05:56:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6PRK9dj/u/rZCptl5g5KfPU8i9kExlWjDlKb42Wq+Ir1MFXSvGTo9NmrzC5fUATtEVc0D X-Received: by 2002:a50:d5d5:: with SMTP id g21mr3014874edj.41.1607003813180; Thu, 03 Dec 2020 05:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607003813; cv=none; d=google.com; s=arc-20160816; b=ZUyWPVJqXZkdhTQ+zSYLVeIAeFPUtupscsC0NvcmX0l+b3ZKcP9xaSPFkOu+CC2clz cnr3DKksDsAER4nAMqEGqJaM7feY9MKEbEDsNzl0lSJlFWJtST+tPpQA8kOI21JaQngj tQgRPOsJQjWnyThbvT8dOPBXU/mzP74obO3xDGDHp1sNNFP6Alr6TXVV0a4Wvr+EpVh/ QAcEP+7XCCGh8849U4HDRLv3GVFGULjOseu0tMRa/0qsR1zpV4nJ+5C9upy4xB9XREcp VEpn3VJK03/z+6l3Nl7Ott2k8XZXF4mpqF2KmlPutzBwhQJMF8Dpp1lDbr1muPcVK/PS bONw== 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=n6zxn0ciPWvecDtaO/9pXlIMYf7CJlzucbFrKBsiNoc=; b=nyt3LF+sB2iheV6KQF++NUni5yMN7ndyY693CALk0r9o/3uMAR4C7hzeljQaJM+NsJ UvWWw5pEbFsELl+3VT1n6z7Upq20m+0+0FhEBQAkyiRPBW7uA/KgWFyJkm1WMktmZWFr 9wbmwBTBdt9xINEZrHti2Yni553PR9i+sWrNsSCK69ersRx35abuWDbulBOKMElbYPLX 5C8WHIRVmPDCisjJoxj7ttliUIpPkR5ZOp14kv+qZJCLSusn6qQIingVAZWRGKGCbX3a llM7Ljg+EJNVjjZ8ifBEoZLBUulCuH+naZPjg5S2mVlpglJByrK968ua4pUk0xG+sfy6 YNAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium.com header.s=google header.b=QLZNuPrT; 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 y16si916691edw.601.2020.12.03.05.56.28; Thu, 03 Dec 2020 05:56:53 -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=QLZNuPrT; 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 S1730774AbgLCNwP (ORCPT + 99 others); Thu, 3 Dec 2020 08:52:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbgLCNwO (ORCPT ); Thu, 3 Dec 2020 08:52:14 -0500 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18FE3C08E85F for ; Thu, 3 Dec 2020 05:50:57 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id v22so2132145edt.9 for ; Thu, 03 Dec 2020 05:50:57 -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=n6zxn0ciPWvecDtaO/9pXlIMYf7CJlzucbFrKBsiNoc=; b=QLZNuPrT5uf1X88NBcbBw2nY6+Q00yCrLLHBNqUgkv+bq7RHQycBWM+naJgy8x5d+I fO/O3DGJ6aa4jNOuR7IPbqGFVBBUv6yWbLnkr6s83m38BJFWQoMPRrSBLfBtUAiQgAyS J2zojUQpHvSTYTLRNgRnYvIKSxbscuGTkiG1+yM4+U3RDroUu2aKmjJjQWW3pFhYDrXg cbBB0enNCrFwbqPUTfBoTKzO0pqWiHdUHarykVYjoFXLZZwrwholGYK3buFMdyD9LDOe hAw7mBp2li26EuEbKgQbcAan1JzNyB1j3GEUJ/bj6Jq7jv41V1E15I4lH7/CJ3Mi2eq1 g92w== 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=n6zxn0ciPWvecDtaO/9pXlIMYf7CJlzucbFrKBsiNoc=; b=s8KA+hh9mX7xiSnW4mljx35KhxUYivMsD/4hCmfAAlNiX4YTrUpm1aNiDXp+yrY4ir IUXyBnQX4BpayiFhQtEECwRVdcbUSiDboSszEXSzaveghYjGC6PrkbkC4ToEj0Fav+eL R0t/hPJDwr8Ep91j43KxqMAwvlJnq0tEinGiONRqdK2roZ5x6uvgNEHROujd4AzRhaFV w8KF6X8gYEd3gdYX/JA0aoUTAbg5WTVD1hoPDpeZxsdiJxPoaZGwLs3WT0ZnElhNADRs P8JQc7uaPbI3cWW9QIteV4dk0p9OO81LrmOM+mO2kR4CU24e2YcZOOXXUDss5bLvx8sP yUmw== X-Gm-Message-State: AOAM5306WdMMiVp3lLKJK4oeJYF/orKXBpyHtgenpy5QoV0T9SxshkkI y1jQ5xVECBdvbyGh3fNqA9jitQ== X-Received: by 2002:aa7:c3c2:: with SMTP id l2mr2861713edr.15.1607003455814; Thu, 03 Dec 2020 05:50:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 05:50:55 -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 4/4] net: freescale/fman: remove fman_get_mem_region Date: Thu, 3 Dec 2020 14:50:39 +0100 Message-Id: <20201203135039.31474-5-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 This function is no longer used, so we can remove it. The pointer to the resource that was kept inside struct fman_state_struct can also be removed for the same reason. Signed-off-by: Patrick Havelange --- drivers/net/ethernet/freescale/fman/fman.c | 17 ----------------- drivers/net/ethernet/freescale/fman/fman.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman.c b/drivers/net/ethernet/freescale/fman/fman.c index 2e85209d560d..bf78e12a1683 100644 --- a/drivers/net/ethernet/freescale/fman/fman.c +++ b/drivers/net/ethernet/freescale/fman/fman.c @@ -531,8 +531,6 @@ struct fman_state_struct { u32 qman_channel_base; u32 num_of_qman_channels; - - struct resource *res; }; /* Structure that holds FMan initial configuration */ @@ -1737,7 +1735,6 @@ static int fman_config(struct fman *fman) fman->state->qman_channel_base = fman->dts_params.qman_channel_base; fman->state->num_of_qman_channels = fman->dts_params.num_of_qman_channels; - fman->state->res = fman->dts_params.res; fman->exception_cb = fman_exceptions; fman->bus_error_cb = fman_bus_error; fman->fpm_regs = fman->dts_params.base_addr_pol + FPM_OFFSET_FROM_POL; @@ -2405,20 +2402,6 @@ u32 fman_get_qman_channel_id(struct fman *fman, u32 port_id) } EXPORT_SYMBOL(fman_get_qman_channel_id); -/** - * fman_get_mem_region - * @fman: A Pointer to FMan device - * - * Get FMan memory region - * - * Return: A structure with FMan memory region information - */ -struct resource *fman_get_mem_region(struct fman *fman) -{ - return fman->state->res; -} -EXPORT_SYMBOL(fman_get_mem_region); - /* Bootargs defines */ /* Extra headroom for RX buffers - Default, min and max */ #define FSL_FM_RX_EXTRA_HEADROOM 64 diff --git a/drivers/net/ethernet/freescale/fman/fman.h b/drivers/net/ethernet/freescale/fman/fman.h index e6b339c57230..e326aa37b8b2 100644 --- a/drivers/net/ethernet/freescale/fman/fman.h +++ b/drivers/net/ethernet/freescale/fman/fman.h @@ -398,8 +398,6 @@ int fman_set_mac_max_frame(struct fman *fman, u8 mac_id, u16 mfl); u32 fman_get_qman_channel_id(struct fman *fman, u32 port_id); -struct resource *fman_get_mem_region(struct fman *fman); - u16 fman_get_max_frm(void); int fman_get_rx_extra_headroom(void); -- 2.17.1