From patchwork Tue Apr 2 10:04:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 232938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gh0-f190.google.com (mail-gh0-f190.google.com [209.85.160.190]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3CC432C0138 for ; Tue, 2 Apr 2013 21:16:40 +1100 (EST) Received: by mail-gh0-f190.google.com with SMTP id y8sf101875ghb.27 for ; Tue, 02 Apr 2013 03:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=bST2vQZ41QP6Xd16mv5r/kN7KPkyUPPqNPGwwZvdZK8=; b=wXr0LlosQmkm2zdk3xX5S1K5mmD3zYF37E3BRipgyi6E/DXipB168vYvB3G1+YRXrB E5cq1JOscCNiO40uSTFtJRbgSEew94Li7eNgq0kp7+yR9t9TGkVr43RKXBXb3mVVwh0w 4REjha7HTZdyuicGxiH/B7HWkSPvMnbfCmWJjeFfJLII+qnh4ACViydLRm+rhO66i1zd LjSAP4u2X6PO9frpnuN14PTa7ec1to2IOoZGxHtX0esmjfPWlTq4eB26U2W/1YqlI07P kSnI1LB88fYwhPUa7TOl237u08mBkn7uZUQN1iY4g/FKdB9KMKY93R+aYgk27nrkTxFP yqaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=bST2vQZ41QP6Xd16mv5r/kN7KPkyUPPqNPGwwZvdZK8=; b=J4fQ+OXjFHbj84xppgz36smA8jIIVcr9RjnvaTmuRpBQyUerCjIvjNxid40XvqkfqI 50MD8a8eu4xt2if6rbG1x88tY1l9mPWZ8SH2TgQ5HZhdzVWDRYaeFbQ6lto50geqA9Na xr59r/9rb2ExX4rMTNuQKaaIgazGDDdnpoGf3iT5x6vfe3+hqEpPuWK6ROH448LkmBQy mA4yEh7QYYf0u2B7fNQXWl3TTQwrSV9hH9UNC8dcUUNDGQiyJBPd8+sTUqm+7sjMEkJu fl33R0FYn2fH3V0CNAUR9IPf6//lr3SKVxENT2BIspfPDqXgllb2I9ZLHscVe3cb6PDF wiHg== X-Received: by 10.50.170.68 with SMTP id ak4mr1567786igc.1.1364897797116; Tue, 02 Apr 2013 03:16:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.7.38 with SMTP id g6ls1657255iga.26.canary; Tue, 02 Apr 2013 03:16:36 -0700 (PDT) X-Received: by 10.66.120.231 with SMTP id lf7mr2882236pab.38.1364897796634; Tue, 02 Apr 2013 03:16:36 -0700 (PDT) Received: from mail-da0-x230.google.com (mail-da0-x230.google.com [2607:f8b0:400e:c00::230]) by gmr-mx.google.com with ESMTPS id rs16si246377pac.1.2013.04.02.03.16.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 03:16:36 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::230 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c00::230; Received: by mail-da0-f48.google.com with SMTP id p8so129089dan.7 for ; Tue, 02 Apr 2013 03:16:36 -0700 (PDT) X-Received: by 10.68.27.164 with SMTP id u4mr23878069pbg.69.1364897796513; Tue, 02 Apr 2013 03:16:36 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id gj2sm1192692pbc.25.2013.04.02.03.16.33 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 03:16:35 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org, patches@linaro.org, Chiwoong Byun Subject: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-max77686.c: Use devm_regmap_init_i2c Date: Tue, 2 Apr 2013 15:34:56 +0530 Message-Id: <1364897096-22250-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlK/BF+eJ+dylMzOze/MXZ8bzwzlZnd1DBNgAwPDiweBiysBhNXXzb6QJcW7k95QJQASd0B X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2607:f8b0:400e:c00::230 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This driver already uses other devm_* APIs. Convert regmap_init_i2c too. Signed-off-by: Sachin Kamat Cc: Chiwoong Byun --- drivers/rtc/rtc-max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index fb08b89..771812d 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -514,7 +514,7 @@ static int max77686_rtc_probe(struct platform_device *pdev) info->dev = &pdev->dev; info->max77686 = max77686; info->rtc = max77686->rtc; - info->max77686->rtc_regmap = regmap_init_i2c(info->max77686->rtc, + info->max77686->rtc_regmap = devm_regmap_init_i2c(info->max77686->rtc, &max77686_rtc_regmap_config); if (IS_ERR(info->max77686->rtc_regmap)) { ret = PTR_ERR(info->max77686->rtc_regmap);