Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp990586pxu; Wed, 2 Dec 2020 08:21:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXJlSeQP9MnLfLCbEC7l53DV0LERVZ+7jWRwgby+7VY08QikNjK3kp4mfE91cMiwIZWw1y X-Received: by 2002:a50:f1c7:: with SMTP id y7mr679948edl.184.1606926081327; Wed, 02 Dec 2020 08:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606926081; cv=none; d=google.com; s=arc-20160816; b=BPdAM/wC/MZZALOqorlEw5ChI9xkFs4PaWDqvflhuwO/50wDRpbfWzkrSiVAbuCs9M s7DcvdaBOYKHbZC4bOW9XdVIQ4/kMwz6aamSKdVDOammj47JbTU1yhckYR5GByikZFGx OsPJRxP+enHK7r9LPLofMy6L0U4rwaAU+M31Rr3CMz71A6hwUWeVXiLhbazIpNpqZ3mF tr45N1lGmwgFQu/NAtW3N22tH2xw19jglX9M/oWNYD9Q2EjGHo1iUZWPbaEM4TnE0MZn Z1VibS1iGQS249hJzXDSgAGF2XZIOzoWOn5lB/SqBGIlrPodZ0rwHQh5Avl3wiAPSXe5 yxAw== 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=wm0Db5G3PbIMvUwVT6+resOoFReoCUJ0Nj7ZWVl7QWk6g5teWKItFK9c/fA4uZ7vIC Pi7NwlnkZCrElScHo+mOuuseCSveStKLKqNMaNJOft/SHto65is7A4fWQJabfZSzKnaO vyUjZsGeGXyfQzlEooaoem1Ne1pEOc72qm7PgGmAqwDSCeYrmFtsskCIe+7XTD/KZMjg 8lUNQo6z5HgeLAR/1eLNVjqqADN2pOCSwTiZ9lwDZB5jVppEUddp2lE78dJ0mpCSV1/+ RmV1CFDfCWHiD45ti3TEQyQ97oz6i+Z70zD2rbStFAIB+i0++dGu3rPgShHRVP8r8TtA Px1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium.com header.s=google header.b=PFKmsM+r; 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 t6si238977ejr.116.2020.12.02.08.20.57; Wed, 02 Dec 2020 08:21: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=PFKmsM+r; 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 S1730572AbgLBQRp (ORCPT + 99 others); Wed, 2 Dec 2020 11:17:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728503AbgLBQRo (ORCPT ); Wed, 2 Dec 2020 11:17:44 -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 D0A7EC061A49 for ; Wed, 2 Dec 2020 08:16:20 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id o1so4627203wrx.7 for ; Wed, 02 Dec 2020 08:16:20 -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=PFKmsM+rz5pWrC4hyjIRpp8wEsGNnX/2pKUjgW2vAioOJIULwPqBNsJOCGOmPppTpw PCUogDdRtoz2bhUWAoS8n6d1pxSLzYy2WWT3Lgc5QNAWItCq9vHBPVWrAlW9G9zlS6bp mbMcibpUMzJu3rgchGXRqYuzLOGZr4hHGloqAkCGh5M3QzhK5rhilYPIK0gj4N4Ttmnj kOlH80A0HaC4MPv8FZhxVY62hePGvx3m/hwNVAZTsw2Vminw3/mFF3LDNDz8GbFZM+FC DatoYsLK0ReGk/6GPxUsFSGJ7NTYneBJcAtAWDpydPcqVlSU9rJN/+Tw2jwY/a12R9Ts 4TVg== 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=CEoyescH7Y8CFxt4oD8o0EiyLmCRCR0SXJztyt8dgg545PxGm6SRkif99ON6pT5b9v 9KAgJY9/3SekX87H7UapF27MRqzlKpy4O1SeMvPPwOAv2E7jED41dYrxXYCC8LiwP+Hf fspzAuauBVO2MdSXGS3ZVDT/4WCi2GVJLdIahDqt2wpJnLCKQsP4wc2/iRBm3XzPIaQb kgzOFsazUupSZO9lS52LJeMxlgHLl1JTGtI46esOhf4xoJr+6zOzuMe6t4qjubJm2nPW 8cgxhQRC+skIcJleCG5raB687ixjqektm16l2X0pjcXu4J8nlnFDPyqdtkWtTMBEEY8U Fl0g== X-Gm-Message-State: AOAM532cjpoAEqdSKcVt3pD6tJQtdaKy5Pnf+1xSiVmXrO7bSF6hcUoP zO4ZHQY7ajrpC3fnuHPIQA+Uvw== X-Received: by 2002:adf:f181:: with SMTP id h1mr4305130wro.267.1606925779573; Wed, 02 Dec 2020 08:16:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 08:16:19 -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 4/4] net: freescale/fman: remove fman_get_mem_region Date: Wed, 2 Dec 2020 17:16:00 +0100 Message-Id: <20201202161600.23738-4-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 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