Message ID | 000f01ce47c6$5a452260$0ecf6720$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBQNORWGAKGQEVYG2XQY@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 2FE8A2C00BD for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:20:54 +1000 (EST) Received: by mail-yh0-f56.google.com with SMTP id l109sf363724yhq.1 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:20:50 -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=xG81sho+jm0Dkp2CllpskXxQpqJ8oOfzYYdc250N060=; b=DQTQq4DCvmYHa+lkPAeakidzrWWqlPh7nfBKLCs2pEOqgsehUh8+56EHXwG/ur08Vi l7Nc7P9xA9TQ6jhWkfvtV/QzIc9fsakvLwFwA0uoltZhZ5zVxx552i4EGW5eqwnp+AyU LFS3LUXlj2sOGI/8Fxs9zE4YAaDjz7NwcIG2pexQOAGe+ywFWRomhsGTv+7g2sJVMPi0 Vbf7C2Qt3F0TTGcOHIQopvFyThVeADdaIpWwD9lroHTyeTdwxwi7LzySKgSN8tgGdvaU fKrOjIi8cTzAPvC6UsfN4o3Xe12WqoKXz0SxW4dkRicGgDxuIy4PIeNhFnbIxOqi51VV 0ymw== X-Received: by 10.50.50.138 with SMTP id c10mr1419145igo.5.1367562050172; Thu, 02 May 2013 23:20:50 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.76.234 with SMTP id n10ls205297igw.23.gmail; Thu, 02 May 2013 23:20:49 -0700 (PDT) X-Received: by 10.66.176.49 with SMTP id cf17mr3859388pac.27.1367562049611; Thu, 02 May 2013 23:20:49 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by gmr-mx.google.com with ESMTP id gi6si1691776pbc.2.2013.05.02.23.20.49 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:20:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700CM5LMEZWQ0@mailout1.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:20:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 2E.A9.19350.04753815; Fri, 03 May 2013 15:20:48 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-3d-518357404715 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7C.78.08957.04753815; Fri, 03 May 2013 15:20:48 +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 <0MM7003BNLMOMW00@mmp2.samsung.com>; Fri, 03 May 2013 15:20: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 01/42] rtc: rtc-88pm80x: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:20:48 +0900 Message-id: <000f01ce47c6$5a452260$0ecf6720$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hxlbc84vAr6v8QkqFhtckplBvlQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t8zA12H8OZAg2uL5C2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKePeoha3gAVvF4RlzGRsYL7N2MXJySAiYSPw/cJwFwhaTuHBvPVsXIxeHkMAyRolf W/bCFV3afJsVIjGdUeL1xSksEM4vRomNl26BtbMJqEl8+XKYvYuRg0NEQF+irUUDpIZZoJdR 4kzvbnaQGmGBEInPU3exgdgsAqoS53a+BYvzClhKNL3ayQRhC0r8mHwPbCazgJbE+p3HmSBs eYnNa94yQ1ykILHj7GtGEFtEQE/iSOcsqHoRiX0v3jGCLJYQOMYusef7bhaIZQIS3yYfYgE5 TkJAVmLTAag5khIHV9xgmcAoNgvJ6llIVs9CsnoWkhULGFlWMYqmFiQXFCelF5nqFSfmFpfm pesl5+duYoRE38QdjPcPWB9iTAZaP5FZSjQ5Hxi9eSXxhsZmRhamJqbGRuaWZqQJK4nzqrdY BwoJpCeWpGanphakFsUXleakFh9iZOLglGpgLF82c8HFDCmNhMIkQc8GNp6DYaLnvJKbZmU+ bdM0U/n430eCuWmT4uuGIzFs9ufLM2+oexj3Lsx2+Dg7OLK7JDm9zGRZxIwLr87O2NOm+I5N 9YOS9JME/VMMqh9Z+aP3Hj/4YlJYwMKWP8F/2zmFwp4wRen/fSby6kZU8+Kf6+WO9xTf+NOp xFKckWioxVxUnAgAYUcnzdQCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jQV2H8OZAgwuPpC2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzHj3qIWt4AFbxeEZcxkbGC+zdjFyckgImEhc 2nwbyhaTuHBvPVsXIxeHkMB0RonXF6ewQDi/GCU2XrrFAlLFJqAm8eXLYfYuRg4OEQF9ibYW DZAaZoFeRokzvbvZQWqEBUIkPk/dxQZiswioSpzb+RYszitgKdH0aicThC0o8WPyPbCZzAJa Eut3HmeCsOUlNq95ywxxkYLEjrOvGUFsEQE9iSOds6DqRST2vXjHOIFRYBaSUbOQjJqFZNQs JC0LGFlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgTH9jOpHYwrGywOMQpwMCrx8Cq0NAUK sSaWFVfmHmKU4GBWEuF1+wEU4k1JrKxKLcqPLyrNSS0+xJgM9OlEZinR5Hxg2skriTc0NjEz sjQyszAyMTcnTVhJnPdAq3WgkEB6YklqdmpqQWoRzBYmDk6pBsbeG1l/175/eF1ESEioy27p pKORU9iYNTpWWk5pP6qnUL3AQnWCVfj0npC/GWsu35taXtzEqNv669S2mGD19dFT3r3VZBWf IeXecCX9vNMjlp1n1p/Wk5npcUlYPPeu8U+j2vMFygeZPn43UbH3W/5ap7Hpxp+C5179YsWr TDf1GyXvuXP++mclluKMREMt5qLiRAAwnbBdMQMAAA== 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.24 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-88pm80x.c b/drivers/rtc/rtc-88pm80x.c index f3742f3..354c937 100644 --- a/drivers/rtc/rtc-88pm80x.c +++ b/drivers/rtc/rtc-88pm80x.c @@ -345,7 +345,6 @@ out: static int pm80x_rtc_remove(struct platform_device *pdev) { struct pm80x_rtc_info *info = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); pm80x_free_irq(info->chip, info->irq, info); 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-88pm80x.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)