From patchwork Fri May 3 06:50:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2515821 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 264233FD1A for ; Fri, 3 May 2013 06:50:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UY9oq-0006QY-RD; Fri, 03 May 2013 06:50:12 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UY9op-0006QK-Cl for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:50:11 +0000 X-ACL-Warn: Received: from mailout2.samsung.com ([203.254.224.25]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UY9on-0000fn-F5 for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:50:11 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700J2YMZFB270@mailout2.samsung.com> for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 15:50:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 04.CF.19730.A1E53815; Fri, 03 May 2013 15:50:03 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-80-51835e1a3c64 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1B.43.08957.A1E53815; Fri, 03 May 2013 15:50:02 +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 <0MM7003UQMZEMW90@mmp2.samsung.com>; Fri, 03 May 2013 15:50:02 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Subject: [PATCH 05/15] spi: bfin5xx: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:50:02 +0900 Message-id: <004201ce47ca$6ffc88b0$4ff59a10$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hym9EE6IPUnpISjuyeTTNuJdLIA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zfV3puOZAg617GS2mPnzCZnHgzw5G i8sLL7FaHJnSyO7A4rFpVSebx51re9g8di/4zOTRt2UVYwBLFJdNSmpOZllqkb5dAlfGw3VN jAWH2CoW/1nK1MC4mbWLkZNDQsBEYn/vKWYIW0ziwr31bF2MXBxCAssYJT7ensIGU9T3ew4L RGI6o0T7ywPMEM4vRokjj3+BtbMJqEl8+XKYvYuRg0NEQFXi/yt3kDCzQKVET8tnZpCwsICf xNtVhiBhFqCKvffmgx3BK2Ap0fgcxhaU+DH5HgtEq5bE+p3HmSBseYnNa95CHaogsePsa0YQ W0RAT+LLtZ/MEDUiEvtevGMEOU1CYBO7RMPqMywQywQkvk0+xAJyg4SArMSmA1BzJCUOrrjB MoFRbBaS1bOQrJ6FZPUsJCsWMLKsYhRNLUguKE5KLzLSK07MLS7NS9dLzs/dxAiJs74djDcP WB9iTAZaP5FZSjQ5HxineSXxhsZmRhamJqbGRuaWZqQJK4nzqrVYBwoJpCeWpGanphakFsUX leakFh9iZOLglGpgZLP++nWOtIrK1hdu02v6PH6Xy+x9rXl6dXFn9r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yYDAAA= 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: 1UY9on-0000fn-F5 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-bfin5xx.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index 317f564..68ca444 100644 --- a/drivers/spi/spi-bfin5xx.c +++ b/drivers/spi/spi-bfin5xx.c @@ -1418,9 +1418,6 @@ static int bfin_spi_remove(struct platform_device *pdev) peripheral_free_list(drv_data->pin_req); - /* Prevent double remove */ - platform_set_drvdata(pdev, NULL); - return 0; }