From nobody Sat Dec 27 15:14:46 2025 Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 591CB611F for ; Tue, 19 Dec 2023 05:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="jikoi80u" Received: from pop-os.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id FSK1r7LYOlOIfFSK1rNq1F; Tue, 19 Dec 2023 06:07:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1702962434; bh=hNYuJtLt44j1feoxZtTgwq9FQXGAYBO23/GymZ86/oM=; h=From:To:Cc:Subject:Date; b=jikoi80uOG58pqVrEA9fTFMioN76sSv7LCJL4SuH6vCakXTBBmWmYfkAOQWtYoHyu pEc6A7aHjbvWlA7dkVbNPKz4uqfFiNM2NzScWprWYzm+kTMVWkRKVjXsvoA1ucYThx tsqgHNq8Dwg5liFAPkI9BhslqfgEkNQMQbfeItSN+OlEqm7Y8bnFQkVPVUGKoZ6fLW M1KMltITCaUvAJp7hjqExWDcmRT4CC8xOKmRB6+/gn8PhavLF7M3ia69Pe6zPA5MBq kc5XCbKvWtdTv5C4xx+dMppMM42ECriwWhMvMnHBZ+Ljn8DWwJSKqBX0OzI9B7Slm7 XrjzckzfpVRng== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 19 Dec 2023 06:07:14 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-rtc@vger.kernel.org Subject: [PATCH] rtc: class: Remove usage of the deprecated ida_simple_xx() API Date: Tue, 19 Dec 2023 06:07:12 +0100 Message-Id: <4f2c049cb09d46fed336e22445c71988b4f340d6.1702962419.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ida_alloc() and ida_free() should be preferred to the deprecated ida_simple_get() and ida_simple_remove(). This is less verbose. Signed-off-by: Christophe JAILLET --- Commit 592ff0c8d064 ("rtc: Directly use ida_alloc()/free()") missed this call --- drivers/rtc/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index edfd942f8c54..921ee1827974 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -256,7 +256,7 @@ static int rtc_device_get_id(struct device *dev) of_id =3D of_alias_get_id(dev->parent->of_node, "rtc"); =20 if (of_id >=3D 0) { - id =3D ida_simple_get(&rtc_ida, of_id, of_id + 1, GFP_KERNEL); + id =3D ida_alloc_range(&rtc_ida, of_id, of_id, GFP_KERNEL); if (id < 0) dev_warn(dev, "/aliases ID %d not available\n", of_id); } --=20 2.34.1