Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp751300pxj; Thu, 10 Jun 2021 11:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxr8TCMW0FdV7DT8iO5DOaGBd5XRRT3TwbYLznrkij/sTciojR1Rkm0cPPeP0i3ynH60s6 X-Received: by 2002:aa7:db95:: with SMTP id u21mr927109edt.152.1623350843390; Thu, 10 Jun 2021 11:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623350843; cv=none; d=google.com; s=arc-20160816; b=uWhpvRPrHBXWmhzflSur+XXyMhhTGCZMuIaWNtllDYGkI0ZRUG13j10/sOLBtEm1vm krWIFOGZyCwRHwvqT7evIdZIfT9CYxW+bn36t/+5sxMUrfX21zZVUPXJNdTCBzTw6zCi gkoB1zNYErzTdFbkXXnrKtjjJlx9mFoKF5b9tdmTbZwlWDjNjJt+BKB2Hy8W77Dbv0v/ fFdWh3dDBGYQZseX/9pTtYNQryNdn66JS+/20UfAdHclMLuQ9rApDO4wmDmCiCjmyUpf fvk9I1OCPkPInRu7L3yA7JvL0o/RGKhHq2PdU2rTRq937e9quewh6Op6pGo0ywT2Q/tm RJtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=XkqodHQpzDfX1k3A7E94jsp15tf2BwyBq/owwFWFCGA=; b=DZmS2wrHuqiZ3Ps8eKKZBLHEbW/LXCj9kV2w6p5KERLfPw6kk73IH0/AI81W0ecJ/+ LOAu/s/Y7Ms9tozvTHjW8UYj7MmqJGTvqw1R7p0YIN1KwLz68v3Xn7thRYXVSq5OtWun 4ZImnGeIWj600y6scZsYWX++z0tlhkwP9dtjexKaQAOYA9wsdZ9lePUsw1tZIXGZfrYi 85giD6b5rsZUMZ2RnqAen5MTHdyjDh3XDPHjWSGimf+jvauzyor3Ci6v+fZSmn8IZy01 nYFE0miSuBPkeFUS/b2Ybu9sE1FDO2kZCpfzLY/vwkqmZcqxInQbABPgLtuplR53mYLR 3Oaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si2914216edr.155.2021.06.10.11.46.59; Thu, 10 Jun 2021 11:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhFJSpw (ORCPT + 99 others); Thu, 10 Jun 2021 14:45:52 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47399 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229935AbhFJSpw (ORCPT ); Thu, 10 Jun 2021 14:45:52 -0400 X-UUID: 5ab89752a2a24d6f9f6092f5cd5338d7-20210611 X-UUID: 5ab89752a2a24d6f9f6092f5cd5338d7-20210611 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1966894381; Fri, 11 Jun 2021 02:43:52 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 02:43:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 11 Jun 2021 02:43:51 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH 1/4] mt76: mt7622: use devm_platform_ioremap_resource() Date: Fri, 11 Jun 2021 02:43:44 +0800 Message-ID: <245a3745aea487793e40fbf82172c5367649bab3.1623347029.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Simplify probing code. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/soc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/soc.c b/drivers/net/wireless/mediatek/mt76/mt7615/soc.c index be9a69fe1b38..ac2c27aa7701 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/soc.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/soc.c @@ -31,7 +31,6 @@ int mt7622_wmac_init(struct mt7615_dev *dev) static int mt7622_wmac_probe(struct platform_device *pdev) { - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); void __iomem *mem_base; int irq; @@ -39,7 +38,7 @@ static int mt7622_wmac_probe(struct platform_device *pdev) if (irq < 0) return irq; - mem_base = devm_ioremap_resource(&pdev->dev, res); + mem_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mem_base)) return PTR_ERR(mem_base); -- 2.18.0