From patchwork Fri May 3 06:50:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2515831 Return-Path: X-Original-To: patchwork-spi-devel-general@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by patchwork1.kernel.org (Postfix) with ESMTP id DD1C83FD1A for ; Fri, 3 May 2013 06:50:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UY9p4-0006hY-Gl; Fri, 03 May 2013 06:50:26 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UY9p3-0006hS-Bz for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:50:25 +0000 X-ACL-Warn: Received: from mailout1.samsung.com ([203.254.224.24]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UY9p2-0004Br-7j for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:50:25 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM70069PMZ7UZ20@mailout1.samsung.com> for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 15:50:17 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 3E.B9.13955.92E53815; Fri, 03 May 2013 15:50:17 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-fd-51835e29efbc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3E.53.08957.82E53815; Fri, 03 May 2013 15:50:17 +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 <0MM7003XHMZSMW90@mmp2.samsung.com>; Fri, 03 May 2013 15:50:16 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Subject: [PATCH 06/15] spi: bfin-sport: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:50:16 +0900 Message-id: <004301ce47ca$78645410$692cfc30$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hyne7Q58G4+I6TvG4CtBNmQ9DUQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsVy+t8zA13NuOZAgwmb2C2mPnzCZnHgzw5G i8sLL7FaHJnSyO7A4rFpVSebx51re9g8di/4zOTRt2UVYwBLFJdNSmpOZllqkb5dAlfGqz99 LAVX2Sr6Vgg2MB5j7WLk4JAQMJG4ur2+i5ETyBSTuHBvPVsXIxeHkMAyRokP534xQiRMJL62 TYFKTGeUWHj/HitIQkjgF6PEu1UuIDabgJrEly+H2UGGigioSvx/5Q4SZhaolOhp+cwMYgsL BEs8PNnNBmKzAJXs27QabAyvgKXExUvvmSFsQYkfk++xQPRqSazfeZwJwpaX2LzmLTPEPQoS O86+BrtNREBP4v3xHjaIGhGJfS/eMYLcKSGwiV1i6eevUMsEJL5NPsQC8bCsxKYDUHMkJQ6u uMEygVFsFpLVs5CsnoVk9SwkKxYwsqxiFE0tSC4oTkovMtYrTswtLs1L10vOz93ECImx/h2M dw9YH2JMBlo/kVlKNDkfGKN5JfGGxmZGFqYmpsZG5pZmpAkrifOqtVgHCgmkJ5akZqemFqQW xReV5qQWH2Jk4uCUamDMcnzzf7umvpq+vu7XRfJTeVY+3HdHPVei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SUDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Spam-Score: -2.6 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-Headers-End: 1UY9p2-0004Br-7j Cc: 'Grant Likely' , spi-devel-general@lists.sourceforge.net, Jingoo Han X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net 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 --- drivers/spi/spi-bfin-sport.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-bfin-sport.c b/drivers/spi/spi-bfin-sport.c index 39b0d17..6d04c80 100644 --- a/drivers/spi/spi-bfin-sport.c +++ b/drivers/spi/spi-bfin-sport.c @@ -882,9 +882,6 @@ static int bfin_sport_spi_remove(struct platform_device *pdev) peripheral_free_list(drv_data->pin_req); - /* Prevent double remove */ - platform_set_drvdata(pdev, NULL); - return 0; }