Message ID | 004e01ce4a20$6bcb5660$43620320$@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@vger.kernel.org> X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0C936DF230 for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 6 May 2013 06:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702Ab3EFGKh (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Mon, 6 May 2013 02:10:37 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:65009 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666Ab3EFGKg (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Mon, 6 May 2013 02:10:36 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD0031K54PFZN0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:10:35 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 58.E9.04074.B5947815; Mon, 06 May 2013 15:10:35 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-06-5187495b023c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CA.59.01422.A5947815; Mon, 06 May 2013 15:10:35 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00D4G55MW0E0@mmp1.samsung.com>; Mon, 06 May 2013 15:10:34 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Chris Ball' <cjb@laptop.org> Cc: linux-mmc@vger.kernel.org, Jingoo Han <jg1.han@samsung.com>, 'Manuel Lauss' <manuel.lauss@gmail.com> Subject: [PATCH 03/22] mmc: au1xmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:10:34 +0900 Message-id: <004e01ce4a20$6bcb5660$43620320$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5KIF7ABu7nKir7Syi3nRq/yAwGgQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zQ91oz/ZAg+YpHBbbX29ks7i88BKr xZH//YwW1748Yndg8dg56y67x6Eraxk9+rasYvT4vEkugCWKyyYlNSezLLVI3y6BK+Pd/GWM BWvZKjovGTYwLmLtYuTkkBAwkVj5ugXKFpO4cG89WxcjF4eQwDJGiUn7N7HBFF24/gwqsYhR Yvah08wQzi9GiXVXpjKDVLEJqEl8+XKYHcQWEVCU2PL9OJjNLJAlcefATEYQW1jAT+LrtZtg NouAqsS6J6vAangFLCW2vNwIZQtK/Jh8jwWiV0ti/c7jTBC2vMTmNW+ZIS5SkNhx9jUjxC49 ifWr77NC1IhI7HvxjhHkOAmBdewSJ/duhlomIPFt8iGgoRxACVmJTQeg5khKHFxxg2UCo9gs JKtnIVk9C8nqWUhWLGBkWcUomlqQXFCclF5kolecmFtcmpeul5yfu4kREmcTdjDeO2B9iDEZ aP1EZinR5HxgnOaVxBsamxlZmJqYGhuZW5qRJqwkzqveYh0oJJCeWJKanZpakFoUX1Sak1p8 iJGJg1OqgTEi7ypXZXbo7s5An2MPHHo2Ky5dZVvx/kWdfcEN3kcr/jXN1rK6clB0xXXRhV+3 iUp8PLWQiePD3YxeJssDLXuzdjRJzlp+WML0z9crrsbXzrDrN0e/VPDcun3fjC5Nk5eCpydM nS191HedWH/utdL/HvEvDTfdavvy1m7ubPFl9x/Pnebtn2qkxFKckWioxVxUnAgA3fvRh8kC AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jAd1oz/ZAg8s7WSy2v97IZnF54SVW iyP/+xktrn15xO7A4rFz1l12j0NX1jJ69G1ZxejxeZNcAEtUA6NNRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr4dpgmhIW66 FjCNEbq+IUFwPUYGaCBhHWPGu/nLGAvWslV0XjJsYFzE2sXIySEhYCJx4fozNghbTOLCvfVA NheHkMAiRonZh04zQzi/GCXWXZnKDFLFJqAm8eXLYXYQW0RAUWLL9+NgNrNAlsSdAzMZQWxh AT+Jr9dugtksAqoS656sAqvhFbCU2PJyI5QtKPFj8j0WiF4tifU7jzNB2PISm9e8ZYa4SEFi x9nXjBC79CTWr77PClEjIrHvxTvGCYwCs5CMmoVk1Cwko2YhaVnAyLKKUTS1ILmgOCk910iv ODG3uDQvXS85P3cTIziKn0nvYFzVYHGIUYCDUYmHt+BJW6AQa2JZcWXuIUYJDmYlEV6fvUAh 3pTEyqrUovz4otKc1OJDjMlAn05klhJNzgcmmLySeENjEzMjSyMzCyMTc3PShJXEeQ+2WgcK CaQnlqRmp6YWpBbBbGHi4JRqYFym+6Tq72obXx3m8sm8lt7KQQffv9eq3bb48bYbuQ27X/D5 rZdZfuq+0dFlMZ03hbZeDLYXkzqc0J95JvjgNc6l8qrm79cuCF1l8jskdolSzIog5bulkn2Z 0RKME8P31p87ndtyZoEl90P23TMeFzlmL63QVwmuUn2v+/xO9HnHg53VnTPTXiqxFGckGmox FxUnAgCJ3aYXJgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org |
diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c index 127a8fa..df9becd 100644 --- a/drivers/mmc/host/au1xmmc.c +++ b/drivers/mmc/host/au1xmmc.c @@ -1149,7 +1149,6 @@ static int au1xmmc_remove(struct platform_device *pdev) kfree(host->ioarea); mmc_free_host(host->mmc); - platform_set_drvdata(pdev, NULL); } 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/mmc/host/au1xmmc.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)