Message ID | 001001ce47c6$8d65aa70$a830ff50$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBF5PRWGAKGQEFZLXZXI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yh0-x238.google.com (mail-yh0-x238.google.com [IPv6:2607:f8b0:4002:c01::238]) (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 54ADB2C00B1 for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:22:18 +1000 (EST) Received: by mail-yh0-f56.google.com with SMTP id l109sf377716yhq.21 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:22:15 -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=6UzH7acCDtIWt9cBM1lNRYKi7Ct+X6B3AYrcMk12PBs=; b=Dt+O5J5D1MQyZkFLrOgt2DaDk3kh6YfrIB8yQvg4DHEI1277n42EMvX687ffCQHCqy aL+XFgbwlGcQTfGGDLRbXnT/eu9jH8oJr6S1WD54ndDZni16fLwWVem27FUU/vwwCc3q PgVLf45I70ZdWsshdxf5HqJW5Rkjib71rsjdj4pV0EetqDdn68vfo1irAa/i9UeXj3KM ISuQ8sDsdTddB7WXMAgBWMImf3err3z4mQWxgFwhS1l9gTYWJyiOdEkBXy6RA3/i/XqN 3teBjTbqYfk/RWt3hBW9ZaHV/bh4uSsEau6/SLh/zr52V4aBX+G5VG307FP3wObEVDu3 C9vw== X-Received: by 10.50.25.33 with SMTP id z1mr2635569igf.16.1367562135657; Thu, 02 May 2013 23:22:15 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.107.105 with SMTP id hb9ls197445igb.27.gmail; Thu, 02 May 2013 23:22:15 -0700 (PDT) X-Received: by 10.68.112.65 with SMTP id io1mr3859431pbb.6.1367562135197; Thu, 02 May 2013 23:22:15 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id xb6si1779058pab.0.2013.05.02.23.22.15 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:22:15 -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 epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700K4QLP2B440@mailout2.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:22:14 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 85.26.04074.69753815; Fri, 03 May 2013 15:22:14 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-ff-51835796759c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E6.E8.01422.69753815; Fri, 03 May 2013 15:22:14 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MM700MQQLP1HDT0@mmp2.samsung.com>; Fri, 03 May 2013 15:22:14 +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 02/42] rtc: rtc-88pm860x: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:22:13 +0900 Message-id: <001001ce47c6$8d65aa70$a830ff50$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HxouWoPwdQDi6RA+e4ruIDwCxPQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zA91p4c2BBv+nC1gsuXiV3WLO+jVs FpcXXmK1uLxrDpvF/s4ORgdWjz0TT7J5nJjxm8Wjb8sqRo/p834yeXzeJBfAGsVlk5Kak1mW WqRvl8CV8XDxVqaCy2wV+zbtYG1gPM7axcjBISFgItG8IKmLkRPIFJO4cG89WxcjF4eQwDJG iS2XlrBCJEwkLqzsh0pMZ5R48Xs6M4Tzi1Hi9co1YFVsAmoSX74cZgeZKiKgL9HWogFSwyzQ zSjxqHkuM0iNsECoxNd/11lAbBYBVYmdyy6BxXkFLCXWLVjHCGELSvyYfA+shllAS2L9zuNM ELa8xOY1b5khLlKQ2HH2NVi9iICeROe596wQNSIS+168YwRZLCFwjF1i6e7njBDLBCS+TT7E AvGyrMSmA1BzJCUOrrjBMoFRbBaS1bOQrJ6FZPUsJCsWMLKsYhRNLUguKE5KLzLRK07MLS7N S9dLzs/dxAiJvQk7GO8dsD7EmAy0fiKzlGhyPjB280riDY3NjCxMTUyNjcwtzUgTVhLnVW+x DhQSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAmFnGY/btwr2vfRH14kuO1M16wjCZ28nUznrv 602GAS6+ecd3lCdKv8+JnK6ydb+1iNgWGYW8l3Pmz75h7OJ3QWf1TLnfMvfS8r3diwRq7n7Z Pul9u9Js3/ehi2rkcxZHB1+Raz523We7Xvk8jdJ5169oibYvFq5nyHnYk5M+wWnbW/X1119L K7EUZyQaajEXFScCAMMI2UfTAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jQd1p4c2BBt+O8VgsuXiV3WLO+jVs FpcXXmK1uLxrDpvF/s4ORgdWjz0TT7J5nJjxm8Wjb8sqRo/p834yeXzeJBfAGtXAaJORmpiS WqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDtF1JoSwxpxQoFJBY XKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjHmPFw8VamgstsFfs27WBtYDzO2sXIySEhYCJx YWU/G4QtJnHh3nogm4tDSGA6o8SL39OZIZxfjBKvV64B62ATUJP48uUwexcjB4eIgL5EW4sG SA2zQDejxKPmucwgNcICoRJf/11nAbFZBFQldi67BBbnFbCUWLdgHSOELSjxY/I9sBpmAS2J 9TuPM0HY8hKb17xlhrhIQWLH2ddg9SICehKd596zQtSISOx78Y5xAqPALCSjZiEZNQvJqFlI WhYwsqxiFE0tSC4oTkrPNdIrTswtLs1L10vOz93ECI7tZ9I7GFc1WBxiFOBgVOLhVWhpChRi TSwrrsw9xCjBwawkwuv2AyjEm5JYWZValB9fVJqTWnyIMRno04nMUqLJ+cC0k1cSb2hsYmZk aWRmYWRibk6asJI478FW60AhgfTEktTs1NSC1CKYLUwcnFINjI2p20tDJ98/+Ovu7S5Xy+zS rU1r/Ptib0xqStMOXH9xaph3EN/RmUqPVCdJi7e/fcz470/IwVr/94sLb90N7Np07sSz1l+M 6ybtm9l3PnnlCpujUyuS+//f9FX5pHYrbPkHkwcRaXlJdv8kfaQuXmRJY/66J+dVm/uKu+7/ ubnr9CQLp988Eq3EUpyRaKjFXFScCACuxOB2MQMAAA== 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-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index 0f2b91b..4e30c85 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c @@ -418,7 +418,6 @@ static int pm860x_rtc_remove(struct platform_device *pdev) pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, 0); #endif /* VRTC_CALIBRATION */ - 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-88pm860x.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)