From patchwork Fri May 3 06:34:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 241176 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-f58.google.com (mail-pa0-f58.google.com [209.85.220.58]) (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 020402C00A4 for ; Fri, 3 May 2013 16:34:19 +1000 (EST) Received: by mail-pa0-f58.google.com with SMTP id jh10sf376413pab.3 for ; Thu, 02 May 2013 23:34:17 -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=4arki3dNZEaylHe+C9p/cKod/hACce+4SKo4IEwHiCA=; b=ouuQLeSl3ej+ZGvV2CLhHQ73y8LUyn4pRztGdYNZt5MOrqLRtq0uPySyY2UIW/gb2A yQ64do4psbQA3GY1006wCB0TE7UQ2i+PkkKKGEiBR41AaX6hdtC405JBoxYmHAY3GEFs 3JQwKPq9hUjoKDIXJ9lx2r+RE6OAU6g2bOtG2KXZBKQECBSLS0VBS2T1wq69lLpxLUpb sxC7t88bC11iyF1ZayOpelKBIHNumAQWjqmeSOAAQxSW1cSJW48ZuWz8t/sq2n04WvAh sTR+96M11cknL+r/X0PCyBXFcVrPLrI4GEOCSR3KsxP1c23cT5OAhDAt3LRi6v2My29A 64NQ== X-Received: by 10.50.126.70 with SMTP id mw6mr1411468igb.10.1367562857646; Thu, 02 May 2013 23:34:17 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.171.38 with SMTP id ar6ls235029igc.35.canary; Thu, 02 May 2013 23:34:17 -0700 (PDT) X-Received: by 10.66.144.98 with SMTP id sl2mr4070795pab.12.1367562856985; Thu, 02 May 2013 23:34:16 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id xq5si1781361pac.2.2013.05.02.23.34.16 for ; Thu, 02 May 2013 23:34:16 -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 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 <0MM700J0ZM94B260@mailout2.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:34:16 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id B2.C0.19350.76A53815; Fri, 03 May 2013 15:34:16 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-cd-51835a677c80 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CF.EC.08957.76A53815; Fri, 03 May 2013 15:34:15 +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 <0MM700M25M93C9L0@mmp1.samsung.com>; Fri, 03 May 2013 15:34:15 +0900 (KST) From: Jingoo Han To: 'Andrew Morton' Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' , rtc-linux@googlegroups.com, Jingoo Han , 'Wan ZongShun' Subject: [rtc-linux] [PATCH 28/42] rtc: rtc-nuc900: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:34:15 +0900 Message-id: <002a01ce47c8$3b993250$b2cb96f0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HyCo7Zrja+ykVTkGJFunfp9GDjg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOIsWRmVeSWpSXmKPExsVy+t8zA92MqOZAg5luFksuXmW3mLN+DZvF 5YWXWC0u75rDZvF0ep3F/s4ORgc2j52z7rJ77Jl4ks3jxIzfLB59W1Yxekyf95PJ4/MmuQC2 KC6blNSczLLUIn27BK6MJZ3vWAr2sFV0nf7J2sC4nrWLkZNDQsBE4vCcr4wQtpjEhXvr2boY uTiEBJYxSqxYNI0RpujNhluMEIlFjBLfjrczgySEBH4xSjxpNgSx2QTUJL58OczexcjBISKg L9HWogFSzyywmVHiYNMmFpAaYYFgiRuXv4ANZRFQlTj6+TMbiM0rYCmx5f5kKFtQ4sfke2D1 zAJaEut3HmeCsOUlNq95ywxxkILEjrOvweaICOhJrDz9BqpGRGLfi3dQR19ilzi9ShBil4DE t8mHWEBukxCQldh0AGqMpMTBFTdYJjCKzUKyeRaSzbOQbJ6FZMMCRpZVjKKpBckFxUnpRaZ6 xYm5xaV56XrJ+bmbGCGROHEH4/0D1ocYk4HWT2SWEk3OB0ZyXkm8obGZkYWpiamxkbmlGWnC SuK86i3WgUIC6YklqdmpqQWpRfFFpTmpxYcYmTg4pRoY1dR7RBZeEvXRuX7kR3Wd/dxW0W+z 962tfytTdvKBw5sHZ//oTJo5+Xrn83dTAqXmFD0Tvf1f/dmzjxecThhLuH3N7Xr7S/fv9r8M wqrlsoVVzgLaHdwHvqmoPg2y7l3gMCUhMJv3GcvqC14M3qf+BW2ucTPjStpjI5C9QaLnStsm uweZdivWKrEUZyQaajEXFScCACKx2uHaAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGKsWRmVeSWpSXmKPExsVy+t9jAd30qOZAgzcfLC2WXLzKbjFn/Ro2 i8sLL7FaXN41h83i6fQ6i/2dHYwObB47Z91l99gz8SSbx4kZv1k8+rasYvSYPu8nk8fnTXIB bFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QGco KZQl5pQChQISi4uV9O0wTQgNcdO1gGmM0PUNCYLrMTJAAwnrGDOWdL5jKdjDVtF1+idrA+N6 1i5GTg4JAROJNxtuMULYYhIX7q1n62Lk4hASWMQo8e14OzNIQkjgF6PEk2ZDEJtNQE3iy5fD 7F2MHBwiAvoSbS0aIPXMApsZJQ42bWIBqREWCJa4cfkL2FAWAVWJo58/s4HYvAKWElvuT4ay BSV+TL4HVs8soCWxfudxJghbXmLzmrfMEAcpSOw4+xpsjoiAnsTK02+gakQk9r14xziBUWAW klGzkIyahWTULCQtCxhZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIEx/ozqR2MKxssDjEK cDAq8fAqtDQFCrEmlhVX5h5ilOBgVhLhdfsBFOJNSaysSi3Kjy8qzUktPsSYDPTpRGYp0eR8 YBrKK4k3NDYxM7I0MrMwMjE3J01YSZz3QKt1oJBAemJJanZqakFqEcwWJg5OqQbGVcatLf93 5yimZfDYPJuu9/tiyBupNxtyGbX9Zc6zbPmg5qLAvzxDcO+zrVMlzDVvt4jmHOw9c/T2fo2j C1ltDntn690oT13LzbJny0a3mMRtl7eLb+P6ftbzqWeDwD2jv7L2O8Sulpb6725o52BO7RDI aLe0lokwF7x4b9ZB9vC56rJxMx8osRRnJBpqMRcVJwIAYeSyPTkDAAA= 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: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-type: text/plain; charset=ISO-8859-1 Content-language: ko 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 --- drivers/rtc/rtc-nuc900.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-nuc900.c b/drivers/rtc/rtc-nuc900.c index f5dfb6e..90ca8aa 100644 --- a/drivers/rtc/rtc-nuc900.c +++ b/drivers/rtc/rtc-nuc900.c @@ -267,8 +267,6 @@ static int __init nuc900_rtc_probe(struct platform_device *pdev) static int __exit nuc900_rtc_remove(struct platform_device *pdev) { - platform_set_drvdata(pdev, NULL); - return 0; }