From patchwork Sat May 6 08:59:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 679667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B952C7EE2A for ; Sat, 6 May 2023 08:57:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjEFI4w (ORCPT ); Sat, 6 May 2023 04:56:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231784AbjEFI4v (ORCPT ); Sat, 6 May 2023 04:56:51 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2058.outbound.protection.outlook.com [40.107.104.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05FCC49EF; Sat, 6 May 2023 01:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n+ZFw6xnl1hYzuSVddmTjsJEwtFOSR6hH2zfJPUhIdAZsWHXWf5YZIf4j+8/aZx+qL9Kz0JuuHDsTUKairpK5fTQlXuZ8LAaIqmUDMvF7SdrlBktPUd/oD33na1u5QpVXWWg+A7j0dPjgm9jS8t6Y6O8r2WWqD+LV1ShJHN+5Z5RmhuU/T5VLTEfacGj/xkfPWx2HTdzyspyKz1F5y7NysgnA/c7nE+ItsTvYwobh/EnDm/kADf+fbV1YU4UaJCzQ6idoWVS+Ki66dTTBLEyKYGIg3hdgmVa96WdPPqLq9Kz2BB93LLCOC25TdfnqUJh1M0IuiRs//RTMbA2HXv8yA== 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=7LNPv21s/A81wgsD2AgcZGaXOy7KLCkEVkhLT/3xnC8=; b=cb8iPLHgyux8X5C4JRAKUYJFRO9uR+mRnmJHu+KjSJCZ/E8Ebstbx26j5MjRLlBH4UUpDWWiT6Ry34b6WQ66UjjJYrxgIrQCk6wwINCxEf4pZ/7OxBQREUGJxATPtU4posMW5vjKpQG4BV+/7NgrgQbExCVsNm2OdLI7UPSjRKJ04bapwXWLmE4rkMnavTxaXlPYmx8KIMqe3t4Hp5ELGbuvC0cXbea1lOz2xgrDuwJTvSILYIglBqv3PsZY9DB3lDHHInWsJoDLY4ZsXMcpuf/q2CYBOfqo1UIhNWzItZdAo+EJyf1Dgv802oqD0CLh/FUejF1M9x0cpUW1lFy+ew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7LNPv21s/A81wgsD2AgcZGaXOy7KLCkEVkhLT/3xnC8=; b=CmXt9LvCrSkt40EN3GpKX/Aq4V+RGtACSXLNlxQN3m19L9eJiNi0Ke+PXdecFQaJ/WflYbc9RbRdoo2FiCFiQzc87Yk2uSiRKWWZFIJpLJyZWfFbqvA7r97alve7LVx4y18C8P189ObpzicU9ri19enZ2OcVZqIp32llLWNkPKc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by AM8PR04MB7939.eurprd04.prod.outlook.com (2603:10a6:20b:241::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.29; Sat, 6 May 2023 08:56:46 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::86a3:5425:d6fd:2346]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::86a3:5425:d6fd:2346%4]) with mapi id 15.20.6363.028; Sat, 6 May 2023 08:56:46 +0000 From: haibo.chen@nxp.com To: linus.walleij@linaro.org, brgl@bgdev.pl Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, haibo.chen@nxp.com, christophe.leroy@csgroup.eu Subject: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base Date: Sat, 6 May 2023 16:59:27 +0800 Message-Id: <20230506085928.933737-1-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR06CA0014.apcprd06.prod.outlook.com (2603:1096:4:186::11) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|AM8PR04MB7939:EE_ X-MS-Office365-Filtering-Correlation-Id: 297ac551-5859-44b2-83b8-08db4e0fd1ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: psQMqaheClKEJTUFfPox1SEYk9iddc3AJGstZLsEkxoEFUXlFlQUap8kkhtfsZ2M9g0Eyh2BFe9hzJyPN5J3yDnAlsHa81VMVau+J5olGHjH5plWO0ndLgu6iV+GXO6yZGdlo7cKx0g1ZQZexHrV/p/UaC63aII2W+6/+nm+1ZpF1SlzjUB0WgIDeQGG8dbeOstkdzzOop6ykb+riS9LeC3kAW49fF5XCV24Co3NiN+OeLe5jNpZxvJ8Ho1b/bsEVbfuZ8Wlx10rx+WjUpxSM7/nH6OapHubIHZ2yrW2Q0GQR0ndI6gGCjG6zvE6mZveBKk+/X733GHpFNhstSLUqWaYBVaqcEnCJngwJ8ICTEjnpXiFhJ1roExwUZW+hX7L/gQxiBoxw/Z695yotqPPa4mhN1vE9Ka9GMYCJ3rvrUxU6rnoEzFL2Dm3JZV2Xe0Zyk/a/sIxGLhFfZ08dBu459AWHSRry7kRhezN6swMxJC+8Fkg0bjGNyNUZ3SmTJf+WL3DGaRsig9yjc3xHAGwS9NYFU/gzFOxHYvUgayjMyKq9fWQKWN5EOQb9FsKmXTTr2vTFajFjE5E50D8jJRv6r1RtwspNORttNqTL61ocNxEXuc9N0zFO6thb7aIQxZh X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR04MB4010.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(376002)(346002)(136003)(366004)(451199021)(86362001)(8676002)(8936002)(6486002)(52116002)(66946007)(66476007)(66556008)(4326008)(5660300002)(36756003)(38100700002)(38350700002)(478600001)(83380400001)(2616005)(26005)(41300700001)(2906002)(186003)(316002)(6512007)(6506007)(1076003)(9686003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: abZYqCnEwRj1cu2ss9kBTjuhefiTB56CYes4g4fPbBGliOr6Xfj9gtPCpMQeSp2CS/XTQ+Brwb3HpLhqM+RZ6/hN2r4L1dFdndqARyZBnYpCGuFwc0AVvrelw5jU8kyNSpVXsXEpHosrvd0SCfTCOG/7q/Jt7OWv0CJEsV8ivjFKbNa/wVdtswVMtPFnMmurbivWIyrcqx9JnnxCnefo5DB7Hbd2FRk6HIhjD/1Lk83Dqsr5UU6lfKBnLKI1IV4bkAG98ep+yiZTUSXMUlPwIGjHRtqL0KRtLQAdHIZxZ1vBpMAzdbcMdKJlHoLKTgjD/jHKGu5k3ZNr+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LDiUC+RpxwBRp45amA/Z63XgSVr0vY+5CFAkXqyy5oMTrvAUA1aAVe7Mqi/G/nREz/gKUxBTlw3w2RI7ur6DcmJta4wTMRpf3IW+wMt2UyJkvLplgsg1oVDmADtHFkxr3NMXOugDeQB1MUdDJyS9AsQ6cnXSyTDHXJ9+xWypSsf9Yw1o2JnPkw6U/RLFAd8r+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 297ac551-5859-44b2-83b8-08db4e0fd1ef X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2023 08:56:46.0143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9l2WyHKr45bVNAB5yo9EmoOAxk2HTNwxPD9BjnuFjWWLBwupx6tsl2wfp67OhJcwaITRP6y9CGQjTF9rT91Frw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7939 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Haibo Chen gpiolib want to get completely rid of static gpiobase allocation, so switch to dynamic allocat GPIO base, also can avoid warning message: [ 1.529974] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Signed-off-by: Haibo Chen Reviewed-by: Linus Walleij Reviewed-by: Linus Walleij Acked-by: Linus Walleij --- drivers/gpio/gpio-vf610.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index d3f3a69d4907..70e16cef7738 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -259,7 +259,6 @@ static void vf610_gpio_disable_clk(void *data) static int vf610_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct device_node *np = dev->of_node; struct vf610_gpio_port *port; struct gpio_chip *gc; struct gpio_irq_chip *girq; @@ -319,7 +318,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) gc->parent = dev; gc->label = dev_name(dev); gc->ngpio = VF610_GPIO_PER_PORT; - gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT; + gc->base = -1; gc->request = gpiochip_generic_request; gc->free = gpiochip_generic_free; From patchwork Sat May 6 08:59:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 680393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58D2BC77B73 for ; Sat, 6 May 2023 08:57:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231878AbjEFI5A (ORCPT ); Sat, 6 May 2023 04:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231818AbjEFI4w (ORCPT ); Sat, 6 May 2023 04:56:52 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2058.outbound.protection.outlook.com [40.107.104.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E003729A; Sat, 6 May 2023 01:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BlXDkx0+yg+IyuDWxEveellG+UJAqxC2t8TxAeZRGQMZavTgzkb5cm0WeRblp8R9cFtbeTPfXVnh4p6JxfOwcIVqa+2zKsnJN3dOTfwFsWcYk04v0BILwvVV7fYSquTCAxqOz7v1u1TUQ3ZmuDiBwr1zljoYVIEExc4WTRSPC0U3KfHH9eTteEBicAMDv9rfDJ1MJAj+XSuNGP6XaPq2SRU33zUmDuDVZ6p+3CPBEMC/wtemnqvckus4QI4TlR1WmZvBP2UsZ1OnEvsneCZ/mgduKIdeayuQRu9xiaN0/Sl5XgOM1ahSnstv4jGhvhbLiWkpvYP2XHVmhSTOqi6zBg== 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=4xsZsrJsgUMxRk3kDPeb+gin30uiS4j75nr/gNWqiQA=; b=L16YnbjrzNuUMukHoUimmkcN75/3F4v07gBLUZlukzO7nUMWex093ZV8KlU4LyhEdwVCqy1KipSetnHMr2vSzQflTi9Szc1M0TU4ra4yJMmrnWwYGGcxyGdYFZjjTMOeMzklSXOR1MST9GHvrKJvLbcBy715JirHWswZPxy1AYI6tagmXmyLmRPcbMPq0JAyj2WJX//kJ4drD9GsBUkfaXaX+pJW+du0XPjDoylnh+MUsxa197NkrLk31Frq3nFphIq9PNGuhc5hwZqTbI2sHcnkqUDK1crDLlvHykgHpEUMFNU5PEjNFUNat8R/lOO2ua7I5zpSoXGNvl/WV1LqLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4xsZsrJsgUMxRk3kDPeb+gin30uiS4j75nr/gNWqiQA=; b=UEBoNPxfgQN/SFS9kWu8o+vGT61LoVHwdVvdFxan/EO0Nt+oGH8jhlgTI/632LrqUmf8KwXAQ7awaO56zGdP9fhXe8YDbhB50IidCbG3+gCCe4TUOjkNT4z8YVHcDHZq1DUyWmLX1uV9I+nlSARXHxo2l5kpYQ5V8qBlz8f0q00= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by AM8PR04MB7939.eurprd04.prod.outlook.com (2603:10a6:20b:241::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.29; Sat, 6 May 2023 08:56:48 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::86a3:5425:d6fd:2346]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::86a3:5425:d6fd:2346%4]) with mapi id 15.20.6363.028; Sat, 6 May 2023 08:56:48 +0000 From: haibo.chen@nxp.com To: linus.walleij@linaro.org, brgl@bgdev.pl Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, haibo.chen@nxp.com, christophe.leroy@csgroup.eu Subject: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base Date: Sat, 6 May 2023 16:59:28 +0800 Message-Id: <20230506085928.933737-2-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230506085928.933737-1-haibo.chen@nxp.com> References: <20230506085928.933737-1-haibo.chen@nxp.com> X-ClientProxiedBy: SI2PR06CA0014.apcprd06.prod.outlook.com (2603:1096:4:186::11) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|AM8PR04MB7939:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ec3d8f5-ac95-4ef8-de34-08db4e0fd397 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YXOm924OYOmKwo1eA1DpkJiEvVPwJ7rBp76f96M+5rbrc92GqBvkJeKgdnbKY/43Ak6gKBvhlLyuNtpzYSUWDsJ7NL3/pVEUZGsoo8df0ELWVcrZ0S8TtC5j0TrOK2xIainoqb6WTY6/ZAPeWH0e67NrSZTeNmXeavzyhapA8vcD3NIuKBuUV3QJHZ7zBZj40gZ0JgnnfGpP9grPQ/KUUDdSL8GS/N7JOksWV/gb4hjbXKD/o6zj8/Wi7+UwA9iJdrbo/1ULHyLxwS2BcW7d7RjVWztNHjYpismgKlCf0F+wTlThPUntCkWPxTTZMAw/ELVW03PRwOgBr2bQpxaLNrDT8m6XqtZOoUyFks4mZDB/3nuG1QNJ7U3haiakOXqBzfE8neOXV/PvbXRlu0cOLuY7qBn4/PiBv4IKQwR0ePP7B+lHkqi+5NjqPMd5BKqxYHPSvVLBTpzb9SbjWRWg5E4Vz0WfL8aRC6eB2a7yc7GFBt8zyKBYZsPPNuxTPkHv/Rk2b3SxIsmf215zIIiCgeLLGsa/sEksdSkCNtMd6mbQYzGvS6qMdVnuCNDzM6sQzXSudnicA49ci0uzx9HzWhLz2a7RUAH8rehadK2t6k1WpPsTSZXmYCx6IDe7lKYN X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR04MB4010.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(376002)(346002)(136003)(366004)(451199021)(86362001)(8676002)(8936002)(6486002)(52116002)(66946007)(66476007)(66556008)(4326008)(5660300002)(36756003)(38100700002)(38350700002)(478600001)(83380400001)(2616005)(26005)(41300700001)(2906002)(4744005)(186003)(316002)(6512007)(6506007)(1076003)(9686003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oH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RY1RwkfbyQYSesef6y0rh0SgcL3Pej88+vxALfcW6YBqWYeLanddjAbz/jMjo/wshNRRrHztVYBlisGy4go6GbOR5BpUWY9RMPJHEi4L0gw1Uhj0cSHyB3AuGqGL3CE9Gj1Rc/8WaDlmSPhgtFhM2WljwjOWMoVcJYyrFBAZUwwnQIGEI46HH3HjcOlR9o2mU+q7yOO9zxDdJsEd5YDqF75I1C7Hqjx/6uu7l2LtnVlrdGs59Q+eMXiUYn/OumqLSbrUIMQfQvuoIeNv8m1O04sMHWSEP6KwmOS5ThJtI2OE9rfrSbBfRfjBOQFmxytsoEsZFeAMLKb150a4IyXVqfWKLkoCMBiPvoHtcJgXeGEbHjJcXEzmat7LQSVfowk0KMeXajJmlWK1iyxBE2nTEJ+OHqQVATBpdstxtbf7WvVJVffdtQpDQbUpoub+Lz261Jk26IAn1/xGfTPchAl8O4kmabTTQunF/hoJKPm9pWHvbEnJUeWqkbWrVe/M7ELQ1KDHQzQP X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ec3d8f5-ac95-4ef8-de34-08db4e0fd397 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2023 08:56:48.7929 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: h2tcKfukVUUTV0pnI9uyLokXecPafXdzLuwR0tY6CuUGeBSKglhOjnWmOfPUBiZgJAFKvw2oebvdpan0+y0NeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7939 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Haibo Chen gpiolib want to get completely rid of static gpiobase allocation, so switch to dynamic allocat GPIO base, also can avoid warning message: [ 1.529974] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Signed-off-by: Haibo Chen --- drivers/gpio/gpio-mxc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 9d0cec4b82a3..abc129a88a62 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -462,8 +462,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) port->gc.request = gpiochip_generic_request; port->gc.free = gpiochip_generic_free; port->gc.to_irq = mxc_gpio_to_irq; - port->gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 : - pdev->id * 32; + port->gc.base = -1; err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port); if (err)