Message ID | 20211116062328.1949151-11-colin.foster@in-advantage.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=vwZw=QD=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F285C433F5 for <linux-arm-kernel@archiver.kernel.org>; Tue, 16 Nov 2021 06:28:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 492D161A0D for <linux-arm-kernel@archiver.kernel.org>; Tue, 16 Nov 2021 06:28:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 492D161A0D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=in-advantage.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ykyVhvblBh3F5t+4IZAX9cGaNfk3536c5n8AsOD8vGs=; b=Yx7542YMxzxFHW I2cC+xTp7hCDfzUb+tGzfvRQtamqebIz3yeqnC0VUPeMVvrZVwXnqmVTQncuCFNdOs18c+CKRsmwL hLqRN/hfcbI65UxvDSrM2OdLat81pv8TIkigOSk/lPJRrJcDMhi0j9mcfJJmluJHL3wSIA3BmbTJW b1Q5ct/u1vsuY3muTYhfpOZtaRZFN85XWaUCtWw/Q2KAD5hmRKU27Gw/rjn28wKdxlog6sevn1uFI sfUNOkoQS4JLshDYw1lnRQwm0QNHpFcPraQbbLULT2xxelS2yKFtisZ4FYqbMVB23ofFf4LaA9XU0 VAtYWCPdf47gJbDLEU+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmruf-000OSp-H6; Tue, 16 Nov 2021 06:25:52 +0000 Received: from mail-bn8nam12on2108.outbound.protection.outlook.com ([40.107.237.108] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmrso-000Npu-L3 for linux-arm-kernel@lists.infradead.org; Tue, 16 Nov 2021 06:23:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YX9niCzC1JQ8pAqbs1X+rZm7onPcTUojQJyRNG0hoqF95rzv1E6QgCpY12f+LUVhkF3ZeKEh+C8czE5aPOhz16TBHYHHn3MqqGb0igM0dqBdW95b+hXy1pTqnHVGkogU3Ncg0RQOTHJbRhCKglmKy2Z/dPOqhnUir0HJTEyImtxKpCNe4d4OJQH2w2vWSQU/SKeWqHGBKQuzKqu46UGJagwOPwFX71fX0OZv4a2srgg66WQXqwh1qhN2eL4g5PZmubxOjexeeCkWND/agPZ+wMd1BmM00k0BPmaj6xTYUEa2M1VGO/AqouqXoh4MnxHIJSYL1DhMokd5Z35CAzha4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x6up6gsz+c72GQk2W1hkBjqvedIEfYO5cUKW7oUzrF0=; b=UB0IyQocQ+wRAwq1zwJ9qZdBU6XQx/xYbMF/xWK3mZsBBi0umTor0v94tQog+XAKug810sgn7JdllDU+7GD6MLBynFH+YmFicrcaeE5tH1Ic1S0YdVnlE7ebYmh4teUWnwr2PnMPWKMf9NJh1pDmRcHN5v3y1lhhLxX+oOfTPP7egCScOBlQcXAN0ynr7f5YM4nYEvEAJyiCvvxYMCT7rUlVrgSAFx9FSvOG6Lw0FcdKLTVrHWyNOvVy28LGfXpU2H7kO39YnwXokOONCaL7HCV+8iGNUlIZ2QqE665io6D5gihyXYbYAFFPVYR1f3qs4gXnv2py4dwSjmi8KOdozA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x6up6gsz+c72GQk2W1hkBjqvedIEfYO5cUKW7oUzrF0=; b=zKmLcrhd3G58MJTfJmVQBdo9TZb4X9qFDRsE9McIuhutCejNd7gXbRKvHDNgo9So+lMbY6sau19V+IfUQY+B0c8w3d9P/rnS7zwBQwIMzQw7zZr5FtXOXr8rZHduareaPvHp4A8wqCMmYScTE6D1t43e0+YRerCTFueLSGmYI18= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CO1PR10MB4722.namprd10.prod.outlook.com (2603:10b6:303:9e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Tue, 16 Nov 2021 06:23:50 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f%5]) with mapi id 15.20.4690.026; Tue, 16 Nov 2021 06:23:50 +0000 From: Colin Foster <colin.foster@in-advantage.com> To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Vladimir Oltean <vladimir.oltean@nxp.com>, Claudiu Manoil <claudiu.manoil@nxp.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch>, Vivien Didelot <vivien.didelot@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Ioana Ciornei <ioana.ciornei@nxp.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Lars Povlsen <lars.povlsen@microchip.com>, Steen Hegelund <Steen.Hegelund@microchip.com>, Linus Walleij <linus.walleij@linaro.org>, Philipp Zabel <p.zabel@pengutronix.de>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [RFC PATCH v4 net-next 10/23] pinctrl: ocelot: combine get resource and ioremap into single call Date: Mon, 15 Nov 2021 22:23:15 -0800 Message-Id: <20211116062328.1949151-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211116062328.1949151-1-colin.foster@in-advantage.com> References: <20211116062328.1949151-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MWHPR11CA0028.namprd11.prod.outlook.com (2603:10b6:300:115::14) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 Received: from localhost.localdomain (67.185.175.147) by MWHPR11CA0028.namprd11.prod.outlook.com (2603:10b6:300:115::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26 via Frontend Transport; Tue, 16 Nov 2021 06:23:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b5be51a-1999-4e19-5564-08d9a8c9a752 X-MS-TrafficTypeDiagnostic: CO1PR10MB4722: X-Microsoft-Antispam-PRVS: <CO1PR10MB4722972ABB9A76826456CC86A4999@CO1PR10MB4722.namprd10.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:935; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: saDpDmpTVahbLKNHh9uJUcL9u8t0rpKSEkVZQ1T/gAcbb6ih58xnslt/tE6AD01R3Nj318+UTBNWiV1lx6w9lPQZect57M+H6jyJv879Hk8rwIlu7+une7ZraQp6RiaqUWz3yfVVqpsPPGV2rqNo2mes1vM9hLHce07FacTCJ2p8cHAeBE10X95/1vxfkgs5GqhVyr8hqFSgTwZ/nDqG4S4lDEObBJWbcaxhbzJt/y4HcmCtbqH8+d+sPZ9osoJbNouYhwaVk6Fklvg0TB7x8BOlMyTlK8iiio44D0MqwyYlyx+cvFDTnoliNzE2zVcV/85/050J37M5vL52g8jiDxIqe/lFyq/vDHRZFAZx+qPab51TSYej3nAGD4jVl3rmptny7pohd9ChH1a3v2ul6nQfFbcHoxagR/erqdwG7hWK9iOmmLZFevsZ1QYBoiHjyb2tPw4WicFYls+AdBgKBdQhcGTzbKAdV7q5A0qfH6UGObhle/Ds6AFDlni+T5MLhWhgzXBZhuxpsCj7dQ9mbN3nFU3prKN1XC74wbVr9Yz2JeuWfeb8Gx5bgDT1ABShHQfLP0QhQWlAcgvQmJzo/e1Mm5OxnCaRI8yxTCrURLU3ZT/3i/x7DmyYdvR1wmkiGoFD7QD0WB1k0lLf2gJX42Pd1WjPyISMTbOZKfUCKcDhGnnR1d0xxVNpPrkErKtv9byv7pCQ91udotaFq65fAA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2351.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(136003)(366004)(396003)(39830400003)(346002)(83380400001)(6666004)(54906003)(5660300002)(2906002)(7416002)(6486002)(44832011)(956004)(86362001)(2616005)(4326008)(316002)(508600001)(8676002)(186003)(6512007)(38100700002)(38350700002)(1076003)(8936002)(52116002)(4744005)(26005)(6506007)(36756003)(66556008)(66476007)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tXFEqgle1CoNMSYB4f825jQGWE4gQeTdOw24SivTFNvyWz6N7HEIaE3dAZBMIbZnVMINFH7jX+q8Eqy9K2Xt7swXcO7r3qIBQ5W4c+Q2IQLROtZ9XTsdrIwhHag6FD3Vv+eVh4u3Nsz+xcfKOKbx5rZsFSeNwdBApic1tst9cYxluw6RakABK5ScQ1kHH0cifeGNkmKtQTUvdd3XS+tQIh3CR3Q1lip2CO68n5yu/znCrRvTkpQ+rJ2YudFzIuFCeKPZpd9XmhzNcmAzZRdf5VpQyqJG5jN+ldjabATfw9ZYgrHB3Bs09q3aU/BzARcgu1xhq+yve/Jxbxi2EVd1SM7KEi8Gr2qht9luCQ2n1Y/esowf8pRdtNrKEXwMIp08riT+O6P2hKdNDriEk81/VEoIKVSErDPZz04HUEK//UlX6ro7D6klRhieTXUrLOlIZzL/RnPeysZnAHEQUlXSaXHuzDkUi+8/F39WXHlzsRer/YQjiKsvpd9R8nf9jCiXrMPQWFLFEhuQ3pfsPuFYGXtTUsyQE9bHX1JxEweyhG8lC7w8H9nGI3/qdwCm5I4bZxjJnJpXkDx/ZdrAarewFrkEk2Aaey8c9Cmff1hp2sczuXH3Ox8+yx5otcw6H887K52TwCR3Mc2gs7I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antage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b5be51a-1999-4e19-5564-08d9a8c9a752 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 06:23:50.0338 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wLz2iV+2Aj5oDOebUjtsNb6nVD8Ks+ygbDkuq0RzWHsis2HIyME9rzWgFAI4nHI1b41h+U//WWfKG/R9hu4pcu6FWqQoGn/oLRfVHEscb10= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4722 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211115_222354_758370_3CC43E50 X-CRM114-Status: GOOD ( 11.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
add support for VSC75XX control over SPI
|
expand
|
diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 0a36ec8775a3..cc7fb0556169 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1378,8 +1378,7 @@ static int ocelot_pinctrl_probe(struct platform_device *pdev) /* Pinconf registers */ if (info->desc->confops) { - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) dev_dbg(dev, "Failed to ioremap config registers (no extended pinconf)\n"); else
Simple cleanup to make two function calls only one. Signed-off-by: Colin Foster <colin.foster@in-advantage.com> --- drivers/pinctrl/pinctrl-ocelot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)