Message ID | 002701ce47c8$075279c0$15f76d40$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBENURWGAKGQEHDB5SFY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gg0-x23c.google.com (mail-gg0-x23c.google.com [IPv6:2607:f8b0:4002:c02::23c]) (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 37EAC2C007C for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:32:51 +1000 (EST) Received: by mail-gg0-f188.google.com with SMTP id h4sf366108ggn.25 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:32:49 -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=jVGNVR1KuffU02rM123td83wbch3xQD46cvY6fCBY2E=; b=Wz7rdRaSluXoZPscySzGL1rheUMzrVVEH6rdljI8a7Ww5MPcTCNBV7MCFC5YUjWdJ5 Zj44bBrnNJ7tc5RJWZFraLuS92bvlW1yjHmjy+0Rw38xQUQYKZikbe83XsDsZXKmnt4o Q6HH9ZRLThmYQZnEPbrfbMhJa21DpjKQThKPTyQIVCWv9IXwwBpEgTgrhlfZW2QmQvMZ n8Mv2McRZasS1AoqCh4ZI3QCbqm7LmlnM9b/Lt5ZzGD8uiK6koCAy5rcu6w8+cCSPzHX uxWNObi9TYeP2mrKQHLaKf8+99TnY0PqD6SQaql+vpm2SrhQl4j/hvLymfnvmrQ0EJai ycvw== X-Received: by 10.50.1.2 with SMTP id 2mr3863402igi.6.1367562769525; Thu, 02 May 2013 23:32:49 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.33.70 with SMTP id p6ls218940igi.44.canary; Thu, 02 May 2013 23:32:49 -0700 (PDT) X-Received: by 10.66.231.41 with SMTP id td9mr3930551pac.35.1367562769198; Thu, 02 May 2013 23:32:49 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by gmr-mx.google.com with ESMTP id fn10si1782650pab.1.2013.05.02.23.32.49 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:32:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM70035UM641A90@mailout4.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:32:48 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 26.6B.31024.01A53815; Fri, 03 May 2013 15:32:48 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-c2-51835a10b3e2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id AC.5C.01422.01A53815; Fri, 03 May 2013 15:32:48 +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 <0MM700123M6OFF80@mmp1.samsung.com>; Fri, 03 May 2013 15:32:48 +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 25/42] rtc: rtc-mc13xxx: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:32:48 +0900 Message-id: <002701ce47c8$075279c0$15f76d40$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HyAQguWd+DFTFRUWD65GfPi5/Ww== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t8zA12BqOZAg9frhSyWXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DK+LHGruAYe8W8OysZGxhnsnUxcnJICJhI9J7vZIewxSQu3FsPFOfiEBJYxiixcG4P C0zRpWm9rBCJRYwS+68/g3J+MUrsvfIBrIpNQE3iy5fDQKM4OEQE9CXaWjRAapgFuhklHjXP ZQaJCwuESPyZxwJisgioSnSuEwLp5BWwlPi59zALhC0o8WPyPTCbWUBLYv3O40wQtrzE5jVv mSHuUZDYcfY1I4gtIqAncWHOD2aIGhGJfS/eMYKslRA4xC6x7dVOVpAEi4CAxLfJh8D2SgjI Smw6ADVHUuLgihssExjFZiFZPQvJ6llIVs9CsmIBI8sqRtHUguSC4qT0IkO94sTc4tK8dL3k /NxNjJC4693BePuA9SHGZKD1E5mlRJPzgXGbVxJvaGxmZGFqYmpsZG5pRpqwkjivWot1oJBA emJJanZqakFqUXxRaU5q8SFGJg5OqQbGPbzFZfuKfs+avezOj3euW3Oy283Fv88VnsavW6F6 Ys31ryHfI1lC0k/u3H+M+fJ2LQ79oH1XXc+E1y+avCdPdmuH0Pkn76XEm87PqxVKmC3GcGX3 0iCRc/yHBBY57jFtnc+uaeDLc16ubPZy07A2neQtf5j2fHi/YKeY1RHxtVUv50RN3PG/RYml OCPRUIu5qDgRAOZ/pt/RAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsVy+t9jAV2BqOZAg6Vn+CyWXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzPixxq7gGHvFvDsrGRsYZ7J1MXJySAiYSFya 1ssKYYtJXLi3HijOxSEksIhRYv/1Z6wQzi9Gib1XPrCAVLEJqEl8+XKYvYuRg0NEQF+irUUD pIZZoJtR4lHzXGaQuLBAiMSfeSwgJouAqkTnOiGQTl4BS4mfew+zQNiCEj8m3wOzmQW0JNbv PM4EYctLbF7zlhniHgWJHWdfM4LYIgJ6Ehfm/GCGqBGR2PfiHeMERoFZSEbNQjJqFpJRs5C0 LGBkWcUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHNXPpHcwrmqwOMQowMGoxMOr0NIUKMSa WFZcmXuIUYKDWUmE1+0HUIg3JbGyKrUoP76oNCe1+BBjMtCjE5mlRJPzgQknryTe0NjEzMjS yMzCyMTcnDRhJXHeg63WgUIC6YklqdmpqQWpRTBbmDg4pRoYtSZsM1krVOzPde96y9eleuu6 GP9sNz5l4ZmfGGl0TnaC6fe1FqeSGaYlpan9NNvw8NMec/7qyoyAorx1de925VzoWODsWuUb fFtq38u3K54unT7NlLuk597FS+cr0vh4n2fZNEa2FrDPuxEp8ePN5EevHfYU3pb44xkwM87/ +/rJ0861mq47qcRSnJFoqMVcVJwIAEeEDdUuAwAA 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.34 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-mc13xxx.c b/drivers/rtc/rtc-mc13xxx.c index 7a8ed27..77ea989 100644 --- a/drivers/rtc/rtc-mc13xxx.c +++ b/drivers/rtc/rtc-mc13xxx.c @@ -370,8 +370,6 @@ err_reset_irq_status: err_reset_irq_request: mc13xxx_unlock(mc13xxx); - - platform_set_drvdata(pdev, NULL); } return ret; @@ -389,8 +387,6 @@ static int __exit mc13xxx_rtc_remove(struct platform_device *pdev) mc13xxx_unlock(priv->mc13xxx); - 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-mc13xxx.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)