Message ID | 001e01ce47c7$ab443100$01cc9300$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBB7NSRWGAKGQEVZJZTDY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-da0-x240.google.com (mail-da0-x240.google.com [IPv6:2607:f8b0:400e:c00::240]) (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 88F7E2C007C for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:30:24 +1000 (EST) Received: by mail-da0-f64.google.com with SMTP id n41sf364419dak.29 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:30:22 -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=CTLHB2gG75cSGrNgpjGVQijyLqzY5oSgq1ivWK7C6h0=; b=DU0VZrsxu67HraiGWnyi2+8SjDpdEXfJK2sto0d97+7foBb0av7YjhMNTaCELl4vfi MoiaHWgh8eeGb1OGuCqzxBLSSZrz9oLHXx4pF31vIsOa7QnD+Kzn6N5gL9GYgcPlKjKN HoRvipHzcfGH64eeCy9UtyQZ1pXWjK3UcENzKHC84pzV4kKs0X5Y/6KkdpKtz8aF6XHS GdiIR1nbY8le8tx5dSPNJajI1SW4WMdJzRHOLadFz1YMo3UfYl8r2Jo34xwKJdfQ72Oc 2f8hqIjlZv7xNhfMDiwGigGv5/mPhAapwjUmxdIm95b7I4hSzXnNgSz8jqzwj9f4TzuF /zRQ== X-Received: by 10.50.50.138 with SMTP id c10mr1420553igo.5.1367562622092; Thu, 02 May 2013 23:30:22 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.43.131 with SMTP id w3ls218949igl.4.canary; Thu, 02 May 2013 23:30:21 -0700 (PDT) X-Received: by 10.68.108.165 with SMTP id hl5mr3132736pbb.4.1367562621389; Thu, 02 May 2013 23:30:21 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id gk5si1700384pbc.0.2013.05.02.23.30.21 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:30:21 -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 <0MM700KORM20B440@mailout2.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:30:14 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FF.15.19730.67953815; Fri, 03 May 2013 15:30:14 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-e1-51835976ead2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 05.5B.01422.57953815; Fri, 03 May 2013 15:30:14 +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 <0MM70019KM2DFF70@mmp1.samsung.com>; Fri, 03 May 2013 15:30:13 +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 16/42] rtc: rtc-ds1302: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:30:13 +0900 Message-id: <001e01ce47c7$ab443100$01cc9300$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hx6qPpOCw0D2RTBakYxI8UK3Glg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zI92yyOZAg6MnWS2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKeLHuGUvBHraKAx/XMjcwrmftYuTgkBAwkeh/kNDFyAlkiklcuLeerYuRi0NIYBmj xI4dH1ggEiYSz58cYoZILGKUuLbhFCOE84tRYvPbvWwgVWwCahJfvhxmB5kqIqAv0daiAVLD LNDNKPGoeS4zSI2wQLDEjq13mUBsFgFViZe/3jGC2LwClhJXOjZC2YISPybfA9vMLKAlsX7n cSYIW15i85q3zBAXKUjsOPsarF5EQE/iT9c3qHoRiX0vIGZKCBxjl1jVpA6xS0Di2+RDLBAf y0psOgA1RlLi4IobLBMYxWYh2TwLyeZZSDbPQrJhASPLKkbR1ILkguKk9CIjveLE3OLSvHS9 5PzcTYyQyOvbwXjzgPUhxmSg9ROZpUST84GRm1cSb2hsZmRhamJqbGRuaUaasJI4r1qLdaCQ QHpiSWp2ampBalF8UWlOavEhRiYOTqkGxtmyrbOYa5IfdvY2vWbuFnqueU7BwXdR6Vq+vq97 zNZYhIvZae+5tmjOwbN7pjw2WlLqde7dZtVW6YSIx6UR4psS1VcsZBI83rWh/NWSBOt5X+d9 vZi2o7C66qVSncUCYdur3/lVU1/nZKncf5Q88fXBqf3f/0d58r7uMGpPMnJ/rCT2ecL5o0os xRmJhlrMRcWJAIRxop7SAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jAd2yyOZAg2MPGC2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzHix7hlLwR62igMf1zI3MK5n7WLk5JAQMJF4 /uQQM4QtJnHh3nq2LkYuDiGBRYwS1zacYoRwfjFKbH67lw2kik1ATeLLl8PsXYwcHCIC+hJt LRogNcwC3YwSj5rngk0SFgiW2LH1LhOIzSKgKvHy1ztGEJtXwFLiSsdGKFtQ4sfkeywgNrOA lsT6nceZIGx5ic1r3kJdpCCx4+xrsHoRAT2JP13foOpFJPa9eMc4gVFgFpJRs5CMmoVk1Cwk LQsYWVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBMf2M+kdjKsaLA4xCnAwKvHwKrQ0BQqx JpYVV+YeYpTgYFYS4XX7ARTiTUmsrEotyo8vKs1JLT7EmAz06URmKdHkfGDaySuJNzQ2MTOy NDKzMDIxNydNWEmc92CrdaCQQHpiSWp2ampBahHMFiYOTqkGRuHe5VcePHt/zOy516XJPl9L zRpPLb0yKVT2lvRZO7kjRR+YVUTYp+gviZVKedTL93JT8rKy24rX+i69kBHMbdbdedy1ZSW7 QlB+4t8jO32XH6u77f2Ydea8zuSZKneWJL9a8/a5zOmb5+wNNzu1yk53Vvd2adWcymR66N9U z7TO78t3KXv+klBiKc5INNRiLipOBADH0S/EMQMAAA== 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-ds1302.c b/drivers/rtc/rtc-ds1302.c index d139543..1f8ee63 100644 --- a/drivers/rtc/rtc-ds1302.c +++ b/drivers/rtc/rtc-ds1302.c @@ -236,8 +236,6 @@ static int __init ds1302_rtc_probe(struct platform_device *pdev) static int __exit ds1302_rtc_remove(struct platform_device *pdev) { - 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-ds1302.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)