Message ID | 003f01ce47ca$4c005860$e4010920$@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 B13733FD1A for <patchwork-spi-devel-general@patchwork.kernel.org>; Fri, 3 May 2013 06:49:12 +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 1UY9ns-0006by-B4; Fri, 03 May 2013 06:49:12 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <jg1.han@samsung.com>) id 1UY9nq-0006bs-T4 for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:49:10 +0000 X-ACL-Warn: Received: from mailout4.samsung.com ([203.254.224.34]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UY9np-0008Vu-BE for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 06:49:10 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MM700L7LMVOZEB0@mailout4.samsung.com> for spi-devel-general@lists.sourceforge.net; Fri, 03 May 2013 15:49:02 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 53.57.19350.EDD53815; Fri, 03 May 2013 15:49:02 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-28-51835dde876f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1C.E2.08957.EDD53815; Fri, 03 May 2013 15:49: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 <0MM7004O1MXQVX10@mmp2.samsung.com>; Fri, 03 May 2013 15:49:02 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Mark Brown' <broonie@kernel.org> Subject: [PATCH 02/15] spi: ath79: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:49:02 +0900 Message-id: <003f01ce47ca$4c005860$e4010920$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5Hyks2CeHtfehNTtGg8cE7DA09Iw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zA917sc2BBkvXKVhMffiEzeLAnx2M FpcXXmK1ODKlkd2BxWPTqk42jzvX9rB57F7wmcmjb8sqxgCWKC6blNSczLLUIn27BK6Mtpl9 7AX/2Cu+b9zM0sB4la2LkZNDQsBEoq9rPiOELSZx4d56oDgXh5DAMkaJjx8mwhUd/3aKBSIx nVGiYdsEJgjnF6PEy5tT2UGq2ATUJL58OQxkc3CICKhK/H/lDhJmFqiU6Gn5zAwSFhbwkVh9 Vx8kzAJU8eh7O9hiXgFLiYXPX7BB2IISPybfY4Fo1ZJYv/M4E4QtL7F5zVtmiHsUJHacfQ3W KyKgJ7Hj7SJmiBoRiX0v3kE9s4ld4s50c4hdAhLfJh9iATlBQkBWYtMBqDGSEgdX3GCZwCg2 C8nmWUg2z0KyeRaSDQsYWVYxiqYWJBcUJ6UXmeoVJ+YWl+al6yXn525ihETZxB2M9w9YH2JM Blo/kVlKNDkfGKV5JfGGxmZGFqYmpsZG5pZmpAkrifOqt1g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PS1Ks3m6sr5NJOCB1Iq5F0J1TmzYHuLDJvRLLcEvXrL2YI27Ektx RqKhFnNRcSIAjCnEkiYDAAA= 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: 1UY9np-0008Vu-BE 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-ath79.c b/drivers/spi/spi-ath79.c index e504b76..6f6d455 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c @@ -287,7 +287,6 @@ err_clk_put: err_unmap: iounmap(sp->base); err_put_master: - platform_set_drvdata(pdev, NULL); spi_master_put(sp->bitbang.master); return ret; @@ -302,7 +301,6 @@ static int ath79_spi_remove(struct platform_device *pdev) clk_disable(sp->clk); clk_put(sp->clk); iounmap(sp->base); - platform_set_drvdata(pdev, NULL); spi_master_put(sp->bitbang.master); 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/spi/spi-ath79.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)