Message ID | 001401ce47c6$f6787830$e3696890$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBR5QRWGAKGQED4GRLEI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oa0-f61.google.com (mail-oa0-f61.google.com [209.85.219.61]) (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 07D272C00B1 for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:25:14 +1000 (EST) Received: by mail-oa0-f61.google.com with SMTP id m1sf385038oag.6 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:received-spf:x-auditid:from:to:cc :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=qsHWQcHeTrA6Is+38Eymv+MKT5XgbMHRJMEZHAeMuzU=; b=mb2DpfnXAVxX+QOvFWZprf700g6STOrDM3MGmpuI0Ln7vDH2kWt3ZHqphuNj0RbOxu vcYOAQWstgAr3vP1hppuwz6JlvJPpCFtdEnnByr3F9Mkt2lW9it9DX4nggwycRn2zi9k kGw2VWEDOWZM+JtcBCB47nPatyvaX4IvrT7xlKjpatcinGbTPO3V+017PvYKKW9Bzp4N 7H+c/aM2sfsUjUO7WurgYuDV29lOrayarDfRg88CMW5wS1H2V6Xd+NGGvaoO15mTvaFA Je2zeNVYAmE7cY5ALx6TGMaqe+ENQU0SsiqRiVsNXoBvPEyxS59M7nI1BWEpFee/fdrA mRBA== X-Received: by 10.50.101.39 with SMTP id fd7mr53712igb.16.1367562311909; Thu, 02 May 2013 23:25:11 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.195.129 with SMTP id ie1ls250117igc.35.gmail; Thu, 02 May 2013 23:25:11 -0700 (PDT) X-Received: by 10.66.233.130 with SMTP id tw2mr4077997pac.21.1367562311432; Thu, 02 May 2013 23:25:11 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id gk5si1696767pbc.0.2013.05.02.23.25.11 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:25:11 -0700 (PDT) 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 epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700I1QLTJ4Q50@mailout2.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:25:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 19.A2.19730.64853815; Fri, 03 May 2013 15:25:10 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-56-518358469100 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4A.F9.01422.64853815; Fri, 03 May 2013 15:25:10 +0900 (KST) Received: from DOJG1HAN03 ([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 <0MM7000XHLTYP4A0@mmp1.samsung.com>; Fri, 03 May 2013 15:25:10 +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> Subject: [rtc-linux] [PATCH 06/42] rtc: rtc-at91rm9200: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:25:10 +0900 Message-id: <001401ce47c6$f6787830$e3696890$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HxvXIL1sc/mT1T/i0JajOvsdEDw== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t8zQ123iOZAg/3X5C2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKeD31G3PBXraKVbt3szYwbmXtYuTkkBAwkXjbtZQJwhaTuHBvPVsXIxeHkMAyRome vvmMXYwcYEXfD4lDxBcxSjzechmsQUjgF6PEk8NlIDabgJrEly+H2UHqRQT0JdpaNEDqmQW6 GSUeNc9lBokLC4RL7G9jASlnEVCVmLz2J9gYXgFLiW+zLkLZghI/Jt8Dq2EW0JJYv/M4E4Qt L7F5zVtmiDsVJHacfc0IYosI6EmsfLydGaJGRGLfi3eMIHslBI6xS1zruM4IsUxA4tvkQywQ v8hKbDoANUdS4uCKGywTGMVmIVk9C8nqWUhWz0KyYgEjyypG0dSC5ILipPQiI73ixNzi0rx0 veT83E2MkLjr28F484D1IcZkoPUTmaVEk/OBcZtXEm9obGZkYWpiamxkbmlGmrCSOK9ai3Wg kEB6YklqdmpqQWpRfFFpTmrxIUYmDk6pBkbrCc+N5tjMZpp+p+xcc7SC7aqsxOI8/d5D1nN1 aw0WslUoTmAznJXbs+xQvhdjtdm5dhv1ZatKvPe79erfPVPyfLr2i/uB4Qf6bi950Hlldzaf Ss+a2xwPZi62SBbY6KF1LoVx3QtRs4VLL5YJM/BWHw/q5z7NNHXP3n/qIVzHpx9fkPs6+ZsS S3FGoqEWc1FxIgAV0OVA0QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsVy+t9jAV23iOZAg5snZSyWXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzHg99RtzwV62ilW7d7M2MG5l7WLk4JAQMJH4 fki8i5ETyBSTuHBvPVsXIxeHkMAiRonHWy4zgSSEBH4xSjw5XAZiswmoSXz5cpgdpFdEQF+i rUUDpJ5ZoJtR4lHzXGaQuLBAuMT+NhaQchYBVYnJa3+CjeEVsJT4NusilC0o8WPyPbAaZgEt ifU7jzNB2PISm9e8ZYa4R0Fix9nXjCC2iICexMrH25khakQk9r14xziBUWAWklGzkIyahWTU LCQtCxhZVjGKphYkFxQnpeca6RUn5haX5qXrJefnbmIER/Uz6R2MqxosDjEKcDAq8fAqtDQF CrEmlhVX5h5ilOBgVhLhdfsBFOJNSaysSi3Kjy8qzUktPsSYDPTpRGYp0eR8YMLJK4k3NDYx M7I0MrMwMjE3J01YSZz3YKt1oJBAemJJanZqakFqEcwWJg5OqQbGLTd/Tve5bCB02/FN4aGm E2ujxPk8q36zn+fPOHXfnrP1/KyPd7ZNXXjgpMwu95dHnjy5FrdS6FY7m4jY9hdzNmQErZRP Nz/2XbGEcb9jRvK2vq+r25qbjmtptcm2zKm8v/FpTXeq0pwJ6n9PNjxW8hL9oehbpl51WPN1 75bQOd3Zdle/5ggsUmIpzkg01GIuKk4EALCOzTEuAwAA DLP-Filter: Pass X-MTR: 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-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index 0eab77b..5a04b16 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c @@ -342,7 +342,6 @@ static int __exit at91_rtc_remove(struct platform_device *pdev) rtc_device_unregister(rtc); iounmap(at91_rtc_regs); - platform_set_drvdata(pdev, NULL); return 0; }
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/rtc/rtc-at91rm9200.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)