Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbaB0FC1 (ORCPT ); Thu, 27 Feb 2014 00:02:27 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:21025 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751710AbaB0FC0 (ORCPT ); Thu, 27 Feb 2014 00:02:26 -0500 X-AuditID: cbfee68e-b7f566d000002344-9b-530ec6e0151b From: Jingoo Han To: "'Herbert Xu'" Cc: linux-kernel@vger.kernel.org, "=?ISO-8859-1?Q?'Pali_Roh=E1r'?=" , "'Juha Yrjola'" , "'Tony Lindgren'" , "'Jingoo Han'" References: <003e01cf3378$c9f54420$5ddfcc60$%han@samsung.com> In-reply-to: <003e01cf3378$c9f54420$5ddfcc60$%han@samsung.com> Subject: [PATCH 2/5] hwrng: omap3-rom: Use devm_clk_get() Date: Thu, 27 Feb 2014 14:02:24 +0900 Message-id: <003f01cf3379$1a5ee600$4f1cb200$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8zeMUulUPjKSZTQeuQ54WfZho3FgAAA5kw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsVy+t8zQ92Hx/iCDXbZWXS/krG4vPASq8W7 G0+ZLC7vmsNmMfH0byaL/Ve8HNg8vn2dxOKxc9Zddo9tB1Q9+rasYvRY+Podm8fnTXIBbFFc NimpOZllqUX6dglcGdvfH2QvOM9eMentXfYGxu1sXYwcHBICJhJLWhS6GDmBTDGJC/fWA4W5 OIQEljFK/Nhwkg0iYSLRMrWLFSKxiFHi3prHUM5vRom+RwfYQarYBNQkvnw5DGaLCOhJ9K1v ZAQpYha4yCgx88oKsISQgK3Es0lLwMZyCthJTJiwjgXkDGEBS4nlb6tBwiwCqhIvDrazgoR5 gco3XzcBCfMKCEr8mH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E4Kz6R3MK5qsDjEKMDBqMTD+0OXL1iINbGsuDL3EKMEB7OSCO8hF6AQb0piZVVqUX58 UWlOavEhxmSgPycyS4km5wMTVl5JvKGxiZmRpZGZhZGJuTlpwkrivAdbrQOFBNITS1KzU1ML UotgtjBxcEo1MFp+n3NZ887t/7NcUix/TNr1+vzE/LNPNBJ5Kg/MaHYPMuJyrvqpJNdztd4y g7X4uPh1icm5t0VjDq7av2LH9obpD0JC1/wRqjjQ2aqz7hP3RXOvBys89n1insuTfVKn+uW9 +b27hCdITedeFHxG7u6usPTV1zedbr4RopBo0esR5LroXorOvjwlluKMREMt5qLiRADLH5EI TgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_clk_get() to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/char/hw_random/omap3-rom-rng.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c index c853e9e..6f2eaff 100644 --- a/drivers/char/hw_random/omap3-rom-rng.c +++ b/drivers/char/hw_random/omap3-rom-rng.c @@ -103,7 +103,7 @@ static int omap3_rom_rng_probe(struct platform_device *pdev) } setup_timer(&idle_timer, omap3_rom_rng_idle, 0); - rng_clk = clk_get(&pdev->dev, "ick"); + rng_clk = devm_clk_get(&pdev->dev, "ick"); if (IS_ERR(rng_clk)) { pr_err("unable to get RNG clock\n"); return PTR_ERR(rng_clk); @@ -120,7 +120,6 @@ static int omap3_rom_rng_remove(struct platform_device *pdev) { hwrng_unregister(&omap3_rom_rng_ops); clk_disable_unprepare(rng_clk); - clk_put(rng_clk); return 0; } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/