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: 15810 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 0AFC623E10 for ; Tue, 2 Apr 2013 10:16:39 +0000 (UTC) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by fiordland.canonical.com (Postfix) with ESMTP id 97E63A1867C for ; Tue, 2 Apr 2013 10:16:38 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id hx10so224591vcb.19 for ; Tue, 02 Apr 2013 03:16:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=OPKSu3h3SKX/o9wb5PhwQFaos5L7ttcyfuKQpYNaczc=; b=h2d0TAWmc/nspjXpfSc5AkVlaIh4X92DmCBKZ0C8cfS9tGGTksQxFhUpKRGUFKVMvf 2Pb3HuPirA3axPCyux9ujui3pyydygzNOM71bUp82uexExdnnnL8KEJTLzswotDj4aDN 8DjiSimkedKAOP+k/uifkvxIdJz1BcsdLVXy0U3PLAvx8wgOinDN2EYhVkazHyR2mK8n FXZgOyJoqo0kHi/Upcln3OB8h2xkCzEReUWpCNPMSbcRIvURH0FZ8s68Yca/EIlYLlpY 9nn75soCtA+x3gimBS8lsYUK1XO0vWK9IiHSFLNP1LLqEjbnuWnNiOAQ3jivnqjCSmlx uOMA== X-Received: by 10.52.76.103 with SMTP id j7mr10330350vdw.90.1364897798165; Tue, 02 Apr 2013 03:16:38 -0700 (PDT) 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.59.4.204 with SMTP id cg12csp118569ved; Tue, 2 Apr 2013 03:16:37 -0700 (PDT) X-Received: by 10.66.121.202 with SMTP id lm10mr23925382pab.138.1364897797093; Tue, 02 Apr 2013 03:16:37 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id zh8si1553865pac.100.2013.04.02.03.16.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 03:16:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pa0-f45.google.com with SMTP id kl13so215225pab.18 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: [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: ALoCoQnhpoFswpypK8FxR9ywxC7F9py5I3PSaDOJiCkfETuZ5AnPlKyb1I9JKPja2BW7rpzwZXUF 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);