Message ID | 00d601ce100e$b52bb490$1f831db0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBVNZS6EQKGQE2264KNY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oa0-f57.google.com (mail-oa0-f57.google.com [209.85.219.57]) (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 9851A2C008E for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2013 19:37:44 +1100 (EST) Received: by mail-oa0-f57.google.com with SMTP id o6sf3544439oag.2 for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2013 00:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf:x-auditid :from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:x-mailer:thread-index:x-brightmail-tracker :x-brightmail-tracker:dlp-filter:x-mtr:x-cfilter-loop :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:content-language; bh=wnk4JLx5Onkc5ymmVa+zZDwhPL7WzXQwwn1jgJ9nEN0=; b=FmBdxHqb35qHQxnt4EW/PY8Zlw19jm7cfivZhugNXYgqWudLEGpQejHttckjjjXb6x N3l7eEO7xpmRSJD47cJsBwy0pObaRB5C5twjQxcGAkxXCJAeL5INLjyEA3IaqAdOMmPB v88Kfc+JOAv2ms7NT486wMc6jbti+P/4/yqIn4xpvHXf2SQUasRInISRDrA0H1NW+77Y nktIqmHmHR/x5fHa0WjgAjMwhRM0NQsQrq3eQ3hZ+w4vELn5c+Zb3bT1cCbWV5NKH71n a18019VVYzR6aaHmi7SPd2UGjxVG6ZkvPpSv/yGnqz+UB9QLz7X3WW7ZY+moX/ufs0cP TWqw== X-Received: by 10.50.217.225 with SMTP id pb1mr3114387igc.5.1361435861777; Thu, 21 Feb 2013 00:37:41 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.158.199 with SMTP id ww7ls193342igb.42.gmail; Thu, 21 Feb 2013 00:37:41 -0800 (PST) X-Received: by 10.66.89.234 with SMTP id br10mr4356596pab.21.1361435861538; Thu, 21 Feb 2013 00:37:41 -0800 (PST) X-Received: by 10.66.89.234 with SMTP id br10mr4356595pab.21.1361435861527; Thu, 21 Feb 2013 00:37:41 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id d9si3870987paw.0.2013.02.21.00.37.41; Thu, 21 Feb 2013 00:37:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MIK00FC1AMS6CI0@mailout2.samsung.com> for rtc-linux@googlegroups.com; Thu, 21 Feb 2013 17:37:40 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 00.A9.06692.3DCD5215; Thu, 21 Feb 2013 17:37:39 +0900 (KST) X-AuditID: cbfee691-b7f556d000001a24-09-5125dcd3984c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E9.F3.03880.3DCD5215; Thu, 21 Feb 2013 17:37:39 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MIK00C3JAMRJ300@mmp1.samsung.com> for rtc-linux@googlegroups.com; Thu, 21 Feb 2013 17:37:39 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Andrew Morton' <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' <a.zummo@towertech.it>, rtc-linux@googlegroups.com, 'Jingoo Han' <jg1.han@samsung.com> References: <00cc01ce100d$f42fddc0$dc8f9940$%han@samsung.com> In-reply-to: <00cc01ce100d$f42fddc0$dc8f9940$%han@samsung.com> Subject: [rtc-linux] [PATCH 11/12] rtc: rtc-max8997: use devm_request_threaded_irq() Date: Thu, 21 Feb 2013 17:37:39 +0900 Message-id: <00d601ce100e$b52bb490$1f831db0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4QDe9M0/OnFjrjTvSUwIYm7R1WAgAALXLg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsVy+t8zY93Ld1QDDabctrHY39nB6MDosWfi SbYAxigum5TUnMyy1CJ9uwSujLWHDrIXLOWomL/kE3MD41O2LkZODgkBE4ldr38wQthiEhfu rQeKc3EICSxjlJj74DA7TNGfnuVgDUICixglzt7SgSiaySTR+PkvE0iCTUBN4ssXkAYODhEB fYm2Fg2QGmaBXkaJM7272SGabSXmfLjGDGJzCthJXN72hRWkXljAQ2L/kiKQMIuAqsTyxl8s IDYvUPnle+2MELagxI/J98DizAJaEut3HmeCsOUlNq95ywwyRkJAXeLRX12QsIiAkcTNfXeg SkQk9r14xwhyjoTAMnaJGc+eMUHsEpD4NvkQC0SvrMSmA8wQ70pKHFxxg2UCo8QsJJtnIdk8 C8nmWUhWLGBkWcUomlqQXFCclF5kqlecmFtcmpeul5yfu4kRElkTdzDeP2B9iDEZaP1EZinR 5HxgZOaVxBsaG5uYmZiamFuampuSJqwkzit/SSZQSCA9sSQ1OzW1ILUovqg0J7X4ECMTB6dU A2Po/EDWnf8yDY/1bkph+Ta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 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Original-Sender: jg1.han@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=jg1.han@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-type: text/plain; charset=ISO-8859-1 Content-language: ko |
diff --git a/drivers/rtc/rtc-max8997.c b/drivers/rtc/rtc-max8997.c index a4e7079..00e505b 100644 --- a/drivers/rtc/rtc-max8997.c +++ b/drivers/rtc/rtc-max8997.c @@ -495,7 +495,8 @@ static int max8997_rtc_probe(struct platform_device *pdev) } info->virq = virq; - ret = request_threaded_irq(virq, NULL, max8997_rtc_alarm_irq, 0, + ret = devm_request_threaded_irq(&pdev->dev, virq, NULL, + max8997_rtc_alarm_irq, 0, "rtc-alarm0", info); if (ret < 0) { dev_err(&pdev->dev, "Failed to request alarm IRQ: %d: %d\n", @@ -514,10 +515,8 @@ static int max8997_rtc_remove(struct platform_device *pdev) { struct max8997_rtc_info *info = platform_get_drvdata(pdev); - if (info) { - free_irq(info->virq, info); + if (info) rtc_device_unregister(info->rtc_dev); - } return 0; }
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/rtc/rtc-max8997.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)