Received: by 10.192.165.148 with SMTP id m20csp349839imm; Thu, 3 May 2018 22:04:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYIEJT+40xlQqtCE/CxIbNxHu40qYBV3Su2N76nXhIZ/dzsa4GHFsIfrA2AJQBmXRqQpru X-Received: by 10.98.1.5 with SMTP id 5mr25460769pfb.1.1525410260753; Thu, 03 May 2018 22:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525410260; cv=none; d=google.com; s=arc-20160816; b=uMtZdv/bbRg6uHvz6go4cegRN9CtaIuq0PQj59XomvzfmNUJ1Zkin5Opow8El1ipdL WeYc4LgEd/aabVKo+J+IrI8nlvoCdYxvLJ6fCQuMS3B6mwK9c3QligPN+9SyUqOxjHq+ aUMYjW/TtHmfEx7aG8jfrBQZ8mNPCCn2WGeT1rTKbq8jzf3g0EtKbR1vo2w1czviI0SL dnxGl2FKcmW5cI8L1SRONwWitzo6TskiJjxSexS8deYdnatszNJsVKRLdqyBdLnj3vlu NMhbpH4i2bvnOXSZ/Jfnu7J37USJYQJaOYnfA1RQ8m3jQaSPSdYm/XhLGu2XHPFEid16 hH6g== 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:mime-version :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from:arc-authentication-results; bh=YPSdDxxtn0jcdaXUg3WsVCDx5i2cZEOkejIuDAe1yNI=; b=jQWiwGTpYDADI+rVt6jgwo2gbNj1TDqW0MH5etTDqyXRgB2eoPCeuYpEjr4UKqfQ5B 95axM8YoXLgWhRf33JUb72FF+Bserd5p/r8sBU6AQaDDfXHT2o3Tp/1SMUDIGj9DnoMs xIgzH4KpX/vudSW0GvwK8Xpvrv5I9jdEW/6bDtzsCGFOx1mep2ds87EMzOYmwRCvq8Es S2eoG+QbIM7Nc7cYB+JxYsJTuCHQt1ZWhJ9xvLPcQPdCj/ykXmcELFb6kSKP6vASavwW tdo1jm568QfyMzjpnPkagjaN8gKbh4Ebtle88xTelULL8/dUcZaom0MG79NQqWw3L+ge ogxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si12547698pgt.264.2018.05.03.22.04.06; Thu, 03 May 2018 22:04:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751507AbeEDFB0 (ORCPT + 99 others); Fri, 4 May 2018 01:01:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:48420 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeEDFBW (ORCPT ); Fri, 4 May 2018 01:01:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4321BABE9; Fri, 4 May 2018 05:01:21 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Fri, 04 May 2018 14:58:36 +1000 Subject: [PATCH 6/8] staging: mt7621-pci: remove unnecessary resource details. Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Message-ID: <152540991626.12190.2556491761847659514.stgit@noble> In-Reply-To: <152540982998.12190.15220622955317261586.stgit@noble> References: <152540982998.12190.15220622955317261586.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These resources are extracted from devicetree, so they aren't needed here. Signed-off-by: NeilBrown --- drivers/staging/mt7621-pci/pci-mt7621.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index 616960e01052..5094e90eaf69 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -302,27 +302,12 @@ struct pci_ops mt7621_pci_ops= { .write = pci_config_write, }; -static struct resource mt7621_res_pci_mem1 = { - .name = "PCI MEM1", - .start = RALINK_PCI_MM_MAP_BASE, - .end = (u32)((RALINK_PCI_MM_MAP_BASE + (unsigned char *)0x0fffffff)), - .flags = IORESOURCE_MEM, -}; - -static struct resource mt7621_res_pci_io1 = { - .name = "PCI I/O1", - .start = RALINK_PCI_IO_MAP_BASE, - .end = (u32)((RALINK_PCI_IO_MAP_BASE + (unsigned char *)0x0ffff)), - .flags = IORESOURCE_IO, -}; - +static struct resource mt7621_res_pci_mem1; +static struct resource mt7621_res_pci_io1; static struct pci_controller mt7621_controller = { .pci_ops = &mt7621_pci_ops, .mem_resource = &mt7621_res_pci_mem1, .io_resource = &mt7621_res_pci_io1, - .mem_offset = 0x00000000UL, - .io_offset = 0x00000000UL, - .io_map_base = 0xa0000000, }; static void