From patchwork Fri Nov 23 05:59:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 13117 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D682324252 for ; Fri, 23 Nov 2012 06:05:41 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 86E96A18970 for ; Fri, 23 Nov 2012 06:05:41 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so3578243iag.11 for ; Thu, 22 Nov 2012 22:05:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=JSyo8tOqQGKyZXrlh5ljR3i7i17Pq1GD01yb4nSBFNQ=; b=JpLha3EJVaCvXKE1ZBMp6BlTFiph/1ufz3fCE60OP/DQL9dL10mjUhfeo8OJzJ5OhX 0gz0r/ruqDNO3CVVCkyE6yTZZ0IhkF8p5VPEvt/WErv/Dx6G+eljx88ChrqEi9vGFEgl 9LjS+kXacpKCyXSHx2cGacJiTfa8BLf8vNFuTZKD+/7XOD2ojJqHfAzdxTq5eDVYfk/j rMLdivEbOqvqGCgRc8dAiaUPavN6bI1mxsW/nx2eWH0fYbehMG1DFKhdMz5mSassHTK6 l64ZmpE0nldTiRBsJFSh+MKGTffBYMLYQ4jInSZDUZBsBQiJlTkSyhh2y4Z80mBS74AI 5YCQ== Received: by 10.43.46.2 with SMTP id um2mr2321704icb.18.1353650741273; Thu, 22 Nov 2012 22:05:41 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp307414igt; Thu, 22 Nov 2012 22:05:40 -0800 (PST) Received: by 10.68.115.75 with SMTP id jm11mr11516409pbb.28.1353650740722; Thu, 22 Nov 2012 22:05:40 -0800 (PST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id y1si7126689pav.45.2012.11.22.22.05.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 22:05:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f41.google.com with SMTP id bj3so2374735pad.14 for ; Thu, 22 Nov 2012 22:05:40 -0800 (PST) Received: by 10.68.192.97 with SMTP id hf1mr11315006pbc.106.1353650740500; Thu, 22 Nov 2012 22:05:40 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oi3sm3271920pbb.1.2012.11.22.22.05.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 22:05:39 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: w.sang@pengutronix.de, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH 2/7] i2c: s3c2410: Convert to use devm_clk_get() Date: Fri, 23 Nov 2012 11:29:08 +0530 Message-Id: <1353650353-17576-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353650353-17576-1-git-send-email-tushar.behera@linaro.org> References: <1353650353-17576-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQnhxAR92REFjpeM9UZn5NryK5EFa95KzDPobqePkqnJCAcFPz/5bXpvT+7pQIkTqUWcr42T Signed-off-by: Tushar Behera --- drivers/i2c/busses/i2c-s3c2410.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 7522f40..019c3d7 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -968,7 +968,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) /* find the clock and enable it */ i2c->dev = &pdev->dev; - i2c->clk = clk_get(&pdev->dev, "i2c"); + i2c->clk = devm_clk_get(&pdev->dev, "i2c"); if (IS_ERR(i2c->clk)) { dev_err(&pdev->dev, "cannot get clock\n"); return -ENOENT; @@ -1082,7 +1082,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) err_clk: clk_disable_unprepare(i2c->clk); - clk_put(i2c->clk); return ret; } @@ -1104,7 +1103,6 @@ static int s3c24xx_i2c_remove(struct platform_device *pdev) free_irq(i2c->irq, i2c); clk_disable_unprepare(i2c->clk); - clk_put(i2c->clk); iounmap(i2c->regs);