Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5825043iog; Thu, 23 Jun 2022 06:10:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ultjkXz5MCTiHBWeWN8se66FXoKNzbJ2rn089gZnqLg8DinGAFvOudFV93ePK+pJgGonfg X-Received: by 2002:a17:90b:17c3:b0:1ed:157:b9f1 with SMTP id me3-20020a17090b17c300b001ed0157b9f1mr3920659pjb.205.1655989839765; Thu, 23 Jun 2022 06:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655989839; cv=none; d=google.com; s=arc-20160816; b=GLoWfS2d333pFa8pQ999KzP25WTftFIsr7sESw0mJH/eiCaExX6x8utYyhb3+trg+8 wcRegvb+rDpA+cdime8jwTMobxg1oBSCg1SGXEfNcuZYUu6poBMLEdRdxNXMO7ACjrxx UynfZmQTlugM6FRSP/umnrz9Fz6pHEkF7HB89Bp0tDimXlim1ZISbho1/GG3XDG8oR/t EOuyCMoXOvyPPtZfXTUz5pC3fM2XYRpAiSWt/D5HBoY/3FAFJlD4y6YAnPO/95oZwgSu etlRfuMXk5sSk1RRvkDHuX136tYZgwZtwUZ6Lw6leJKzwakQCwupl/9eiBGROmn1MuJK fwgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZrP6Q6YUZYfcV49msrb6P88w6+71ngWBeUPr3A7Rzj8=; b=nzjIbfZEt5syqZu6fBYW+wJcpuAE9CPS3D+p8jfD/ojrk7kOoub+J22WKgr63aTcNT WgSXiAqW/nPFZyT36xV/XPV/800iujlJbh7FXN7pcForklNC8vo6e1jkUJf/aVTYGYqF t71tkkgzbxtR6jYFAlu6+/fuVxk51IJbiauFfMB/EdvTpicHzGltieHRcZW35aGu6B87 7bt3qfJRpmv9cbIxVGsJ8v2dfEHrGTAFy5dAphpH+U4I7bKpTc9lW6PklYQH2aRGWbKY CNMPfiZmfRlyjU3ev/3DmRUhOFudpm3Nvun29l2z7apH8IFBMoAcv4GWS/okcztsBn2h lcbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6302c6000000b003c637ec7ce2si26603910pgc.840.2022.06.23.06.10.21; Thu, 23 Jun 2022 06:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbiFWMsC (ORCPT + 99 others); Thu, 23 Jun 2022 08:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiFWMsA (ORCPT ); Thu, 23 Jun 2022 08:48:00 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B264BCAF for ; Thu, 23 Jun 2022 05:47:59 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8812913D5; Thu, 23 Jun 2022 05:47:59 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 755903F534; Thu, 23 Jun 2022 05:47:58 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, vincent.guittot@linaro.org, f.fainelli@gmail.com, Cristian Marussi Subject: [PATCH 1/5] firmware: arm_scmi: Remove deprecated ida_simple_ calls Date: Thu, 23 Jun 2022 13:47:38 +0100 Message-Id: <20220623124742.2492164-2-cristian.marussi@arm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220623124742.2492164-1-cristian.marussi@arm.com> References: <20220623124742.2492164-1-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove deprecated calls to ida_simple_get/ida_simple_remove. Signed-off-by: Cristian Marussi --- drivers/firmware/arm_scmi/bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c index e95085a66bc4..a7cbf4d09081 100644 --- a/drivers/firmware/arm_scmi/bus.c +++ b/drivers/firmware/arm_scmi/bus.c @@ -192,7 +192,7 @@ scmi_device_create(struct device_node *np, struct device *parent, int protocol, return NULL; } - id = ida_simple_get(&scmi_bus_id, 1, 0, GFP_KERNEL); + id = ida_alloc(&scmi_bus_id, GFP_KERNEL); if (id < 0) { kfree_const(scmi_dev->name); kfree(scmi_dev); @@ -215,7 +215,7 @@ scmi_device_create(struct device_node *np, struct device *parent, int protocol, put_dev: kfree_const(scmi_dev->name); put_device(&scmi_dev->dev); - ida_simple_remove(&scmi_bus_id, id); + ida_free(&scmi_bus_id, id); return NULL; } @@ -223,7 +223,7 @@ void scmi_device_destroy(struct scmi_device *scmi_dev) { kfree_const(scmi_dev->name); scmi_handle_put(scmi_dev->handle); - ida_simple_remove(&scmi_bus_id, scmi_dev->id); + ida_free(&scmi_bus_id, scmi_dev->id); device_unregister(&scmi_dev->dev); } -- 2.32.0