From patchwork Mon Aug 15 19:37:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 12944028 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5EE95C00140 for ; Mon, 15 Aug 2022 19:39:29 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=RCS8JVHHqNeOVGY1HPE2R8o2hL0o/MMonh1piglq9so=; b=jX9TAG4OF9zf58 +zktP3t6txjPxkT+paL8SCUpUFFl7xFbt7Aawcqw8CCj19PZ75eBOOBDOjGzHuMxk7FZwkYgtkzHv /nfG1wIqbV720G9C9udTm5UspEBXAni/f3mknPp8GIwQavgwQ5KnN+trDzfof6T4eIyax3oq2VE6S xnbQR4ryYoYqe/bRvlhCLpCzpwCHwC2aRYnKh66ptFsD09d/BGYH32JkHC+kZUKRbwNokSNXQsQAc hHN3rrupZkxMwtKdZDsThZBdBDgfM/TkNZugf5/KyvoL5s8tfkwP0DNudELP7z7Qst++XUIMzuHpg kOciq3OW2WXQa/mJ7k0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNfur-0048hP-O4; Mon, 15 Aug 2022 19:38:25 +0000 Received: from viti.kaiser.cx ([2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNfuV-0048W5-PI for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 19:38:05 +0000 Received: from dslb-188-096-143-237.188.096.pools.vodafone-ip.de ([188.96.143.237] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1oNfuM-000485-FE; Mon, 15 Aug 2022 21:37:54 +0200 From: Martin Kaiser To: Herbert Xu , Olivia Mackall Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/2] hwrng: imx-rngc - use devres for clk and hwrng Date: Mon, 15 Aug 2022 21:37:41 +0200 Message-Id: <20220815193743.105926-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_123804_028357_339351E6 X-CRM114-Status: UNSURE ( 5.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use devres for clock prepare+enable and for hwrng registration. Martin Kaiser (2): hwrng: imx-rngc - use devm_clk_get_enabled hwrng: imx-rngc - use devres for hwrng registration drivers/char/hw_random/imx-rngc.c | 37 ++++++------------------------- 1 file changed, 7 insertions(+), 30 deletions(-)