Message ID | 001401ce9ed9$83d74c60$8b85e520$%han@samsung.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <linux-acpi-owner@kernel.org> X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0CB96BF546 for <patchwork-linux-acpi@patchwork.kernel.org>; Thu, 22 Aug 2013 01:47:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDF0F202A7 for <patchwork-linux-acpi@patchwork.kernel.org>; Thu, 22 Aug 2013 01:47:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19A6D2047E for <patchwork-linux-acpi@patchwork.kernel.org>; Thu, 22 Aug 2013 01:47:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751898Ab3HVBrM (ORCPT <rfc822;patchwork-linux-acpi@patchwork.kernel.org>); Wed, 21 Aug 2013 21:47:12 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:26083 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853Ab3HVBrL (ORCPT <rfc822; linux-acpi@vger.kernel.org>); Wed, 21 Aug 2013 21:47:11 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRW002UASYMGUC0@mailout4.samsung.com> for linux-acpi@vger.kernel.org; Thu, 22 Aug 2013 10:47:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 91.03.03969.D9D65125; Thu, 22 Aug 2013 10:47:10 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-29-52156d9d48ef Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C4.1C.31505.D9D65125; Thu, 22 Aug 2013 10:47:09 +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 <0MRW00B0TSYLX170@mmp2.samsung.com>; Thu, 22 Aug 2013 10:47:09 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Len Brown' <lenb@kernel.org> Cc: "'Rafael J. Wysocki'" <rjw@sisk.pl>, linux-acpi@vger.kernel.org, "'Naveen N. Rao'" <naveen.n.rao@linux.vnet.ibm.com>, 'Betty Dall' <betty.dall@hp.com>, 'Jingoo Han' <jg1.han@samsung.com> Subject: [PATCH] ACPI / APEI: remove unnecessary platform_set_drvdata() Date: Thu, 22 Aug 2013 10:47:09 +0900 Message-id: <001401ce9ed9$83d74c60$8b85e520$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6e2YO7tIctyZCkTMKcktYvNdiV1w== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zA915uaJBBpuOMVqsuLKRzeLywkus FjsfvmWzWL6vn9HifstTdov+hb1MDmweu7btZPLYtKqTzePBoc0sHn1bVjF6PFrcwujxeZNc AFsUl01Kak5mWWqRvl0CV8apORtYCv6zVOxpX8HawNjO0sXIySEhYCJx5GY/E4QtJnHh3nq2 LkYuDiGBZYwSj9cvZIQpWjt3FgtEYjqjxIprS5ggnF+MEkt//mQHqWITUJP48uUwmC0ioCgx Z/crVpAiZoFDjBK/ej+xgiSEBdwl1v2YzAZiswioShz49AhoLAcHr4CtxI1tdiBhXgFBiR+T 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KRIkxJpYVlyZC/QfB7OSCK+0lmiQEG9KYmVValF+fFFpTmrxIcZkoD8nMkuJ JucDE1FeSbyhsYmZkaWRmYWRibk5acJK4rwHW60DhQTSE0tSs1NTC1KLYLYwcXBKNTCmpmwo 2PXAzsSaKYn5l8n6GYaO3qfZ1DIeiIpqdlb+KBXJvv5Om2+D7JcP6qwzBFhlBPwZJbcFS/Y6 LmJMk9yk6TP5jMrBrZGhh667TfU7znNWIfmNSKv2+zWxyf+Mjq3r6qpWrmsxE9yw6br4rvQA WWHv922BExl/iy+61dpQcHRfj/L/uUosxRmJhlrMRcWJAEqp4aY6AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-acpi.vger.kernel.org> X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 8ec37bb..3f9771d 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1044,8 +1044,6 @@ static int ghes_remove(struct platform_device *ghes_dev) kfree(ghes); - platform_set_drvdata(ghes_dev, NULL); - return 0; }
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/acpi/apei/ghes.c | 2 -- 1 file changed, 2 deletions(-)