Message ID | 001f01ce47c7$b4b41d90$1e1c58b0$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBB5TRWGAKGQEWFDFCMA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oa0-f59.google.com (mail-oa0-f59.google.com [209.85.219.59]) (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 CFADC2C007C for <incoming@patchwork.ozlabs.org>; Fri, 3 May 2013 16:30:33 +1000 (EST) Received: by mail-oa0-f59.google.com with SMTP id l20sf378806oag.24 for <incoming@patchwork.ozlabs.org>; Thu, 02 May 2013 23:30:31 -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=jrEh2aofx6fRe6V7fNvaBGQg/+ypI3pqbqQvNnxnsr0=; b=HMEK4aK737HOyLaK4BrDaPO6kVEg1wYuD+MYCvrHOmG5n6f3E+LY2GgWmhL62aV21N uChoOKnCKs/VcjHU/ejbYQlkMOoPareZo6U+efRFMrzJz5XdRp1BXKSDtg8OkMzRTB69 lXBjq95W/StiLk0++xj7uihKp/+tF0bGQxcTPYfia/DSLQSKiDecfG7ZlWODDT53hqG5 +hGzIgT/dHBxzarms8kpi7uvF0pp29b4qT6fzSf9rlKqtUU2heMp5g578024dDjJY8+h SKvoQH89BPffJhLnuL7Q6e5m4sq2w86oWOO3dxRorzXlzz3gq8U5H+8QK5NufdTnGTjC gx6g== X-Received: by 10.50.1.2 with SMTP id 2mr3863049igi.6.1367562631313; Thu, 02 May 2013 23:30:31 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.43.131 with SMTP id w3ls219022igl.4.canary; Thu, 02 May 2013 23:30:30 -0700 (PDT) X-Received: by 10.66.241.69 with SMTP id wg5mr3896079pac.2.1367562630885; Thu, 02 May 2013 23:30:30 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by gmr-mx.google.com with ESMTP id fn10si1780699pab.1.2013.05.02.23.30.30 for <rtc-linux@googlegroups.com>; Thu, 02 May 2013 23:30:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700I4CM2IS4B0@mailout3.samsung.com> for rtc-linux@googlegroups.com; Fri, 03 May 2013 15:30:29 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 61.2A.31024.58953815; Fri, 03 May 2013 15:30:29 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-86-518359855233 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 8F.7B.01422.58953815; Fri, 03 May 2013 15:30:29 +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 <0MM700M5UM2THDW0@mmp2.samsung.com>; Fri, 03 May 2013 15:30:29 +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 17/42] rtc: rtc-ep93xx: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:30:29 +0900 Message-id: <001f01ce47c7$b4b41d90$1e1c58b0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hx7QN1t+XTxbDRjy0Jx4Iyxr9xg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsVy+t8zY93WyOZAg0etJhZLLl5lt5izfg2b xeWFl1gtLu+aw2axv7OD0YHVY8/Ek2weJ2b8ZvHo27KK0WP6vJ9MHp83yQWwRnHZpKTmZJal FunbJXBl7LsTVjCNo2Lt/JtsDYxP2boYOTkkBEwkrhx+DWWLSVy4tx7MFhJYxijx86QFTE3n jllAcS6g+HRGidMrG1khin4xSuy4kgtiswmoSXz5cpi9i5GDQ0RAX6KtRQOknlmgm1HiUfNc ZpAaYYFgiVfP3jGC2CwCqhKLH+0Fi/MKWEqsWHmYBcIWlPgx+R6YzSygJbF+53EmCFteYvOa t8wQBylI7Dj7GmyOiICexLwNa9ggakQk9r2AmC8hcIhdovFrJsQuAYlvkw+xgNwmISArsekA 1BhJiYMrbrBMYBSbhWTzLCSbZyHZPAvJhgWMLKsYRVMLkguKk9KLDPWKE3OLS/PS9ZLzczcx QqKudwfj7QPWhxiTgdZPZJYSTc4HRm1eSbyhsZmRhamJqbGRuaUZacJK4rxqLdaBQgLpiSWp 2ampBalF8UWlOanFhxiZODilGhinzXouILZkj8UvK8Z5O6R00n40zZ0zaYJV5MZtty6YrPA+ NZMz6c3SmDcLT51UvZjf9lHZ18xv2/2FR4LfvDgZe7THfo2u29JbZoK/3ol9fsK/Y+6SqU/8 PJln3z60/QyX2J5HFhsKGQ9PZ6myPdqqWbLa9NRT60MfPA/ovKivbFPqmBT3I/OPoxJLcUai oRZzUXEiALQGen7QAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsVy+t9jQd3WyOZAg1lNBhZLLl5lt5izfg2b xeWFl1gtLu+aw2axv7OD0YHVY8/Ek2weJ2b8ZvHo27KK0WP6vJ9MHp83yQWwRjUw2mSkJqak Fimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAbVdSKEvMKQUKBSQW Fyvp22GaEBripmsB0xih6xsSBNdjZIAGEtYxZuy7E1YwjaNi7fybbA2MT9m6GDk5JARMJDp3 zIKyxSQu3FsPZHNxCAlMZ5Q4vbKRFSQhJPCLUWLHlVwQm01ATeLLl8PsXYwcHCIC+hJtLRog 9cwC3YwSj5rnMoPUCAsES7x69o4RxGYRUJVY/GgvWJxXwFJixcrDLBC2oMSPyffAbGYBLYn1 O48zQdjyEpvXvGWGOEhBYsfZ12BzRAT0JOZtWMMGUSMise/FO8YJjAKzkIyahWTULCSjZiFp WcDIsopRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMjOK6fSe9gXNVgcYhRgINRiYdXoaUpUIg1 say4MvcQowQHs5IIr9sPoBBvSmJlVWpRfnxRaU5q8SHGZKBPJzJLiSbnA1NOXkm8obGJmZGl kZmFkYm5OWnCSuK8B1utA4UE0hNLUrNTUwtSi2C2MHFwSjUwJsv51Ti1fMq4EPtkzsr6dn+P VsFHbOZecYGuzbXXTXbtbvyiO99j+WZh00cGBf/0st0/yMa1Ti8N0t8nutCC+Zz6gf+tbtyr fturM1QIx3jUcfO+2O2zQCkjzXqmsOBC+xc90wQzen4vt9cQzaycZXpq6bKAU+UxbtHrzBU0 2I4HT0o7t1+JpTgj0VCLuag4EQBhU65VLwMAAA== 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.33 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-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index 5807b77..549b3c3 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -167,7 +167,6 @@ static int ep93xx_rtc_probe(struct platform_device *pdev) return 0; exit: - platform_set_drvdata(pdev, NULL); pdev->dev.platform_data = NULL; return err; } @@ -175,7 +174,6 @@ exit: static int ep93xx_rtc_remove(struct platform_device *pdev) { sysfs_remove_group(&pdev->dev.kobj, &ep93xx_rtc_sysfs_files); - platform_set_drvdata(pdev, NULL); pdev->dev.platform_data = 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-ep93xx.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)