Message ID | 004801ce47ca$a83d2b30$f8b78190$@samsung.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <spi-devel-general-bounces@lists.sourceforge.net> 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 C17F03FD1A for <patchwork-spi-devel-general@patchwork.kernel.org>; Fri, 3 May 2013 06:51:54 +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 <spi-devel-general-bounces@lists.sourceforge.net>) id 1UY9qU-0006ri-DE; Fri, 03 May 2013 06:51:54 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <jg1.han@samsung.com>) id 1UY9qT-0006rW-D7 for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:51:53 +0000 X-ACL-Warn: Received: from mailout1.samsung.com ([203.254.224.24]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UY9qR-0000mr-Fs for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:51:53 +0000 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 <0MM700MHBN1BUTQ0@mailout1.samsung.com> for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 15:51:37 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 66.D8.19350.97E53815; Fri, 03 May 2013 15:51:37 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-63-51835e797dd2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B1.33.01422.97E53815; Fri, 03 May 2013 15:51:37 +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 <0MM7004LVN200O80@mmp2.samsung.com>; Fri, 03 May 2013 15:51:37 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Mark Brown' <broonie@kernel.org> Subject: [PATCH 11/15] spi: spi-gpio: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:51:36 +0900 Message-id: <004801ce47ca$a83d2b30$f8b78190$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HyqdiZ/jzFHH5SyOrF7Jx5C5knQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsVy+t8zQ93KuOZAg4UTxS2mPnzCZnHgzw5G i8sLL7FaHJnSyO7A4rFpVSebx51re9g8di/4zOTRt2UVYwBLFJdNSmpOZllqkb5dAlfG2kN/ 2Qrms1fc/n2KvYGxh62LkZNDQsBEYufe40wQtpjEhXvrgeJcHEICyxgllsxdDlf05v1kdojE dEaJj9fuQjm/GCVOLLjBClLFJqAm8eXLYaAEB4eIgKrE/1fuIGFmgUqJnpbPzCC2sIC/xLdP B1hAbBagkoZD3YwgNq+ApUT3o4nMELagxI/J91ggerUk1u+EuI5ZQF5i85q3zBAHKUjsOPsa rFdEQE/iTct1NogaEYl9L94xgtwmIbCJXaJ94VtWiGUCEt8mH2IBuU1CQFZi0wGoOZISB1fc YJnAKDYLyepZSFbPQrJ6FpIVCxhZVjGKphYkFxQnpReZ6hUn5haX5qXrJefnbmKERNrEHYz3 D1gfYkwGWj+RWUo0OR8YqXkl8YbGZkYWpiamxkbmlmakCSuJ86q3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RD77foah/ae04auaVjUv6Rgez8zEq1adG58Ivezxuvz2UM4yAyWW 4oxEQy3mouJEAB4mRRUnAwAA 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: 1UY9qR-0000mr-Fs Cc: 'Grant Likely' <grant.likely@linaro.org>, spi-devel-general@lists.sourceforge.net, Jingoo Han <jg1.han@samsung.com> X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion <spi-devel-general.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spi-devel-general>, <mailto:spi-devel-general-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=spi-devel-general> List-Post: <mailto:spi-devel-general@lists.sourceforge.net> List-Help: <mailto:spi-devel-general-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/spi-devel-general>, <mailto:spi-devel-general-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: spi-devel-general-bounces@lists.sourceforge.net |
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 0021fc4..9672c7b 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -514,8 +514,6 @@ static int spi_gpio_remove(struct platform_device *pdev) status = spi_bitbang_stop(&spi_gpio->bitbang); spi_master_put(spi_gpio->bitbang.master); - platform_set_drvdata(pdev, NULL); - if (SPI_MISO_GPIO != SPI_GPIO_NO_MISO) gpio_free(SPI_MISO_GPIO); if (SPI_MOSI_GPIO != SPI_GPIO_NO_MOSI)
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/spi/spi-gpio.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)