From patchwork Fri Feb 15 14:45:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 2148181 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A3BED3FCF6 for ; Fri, 15 Feb 2013 14:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932635Ab3BOOpp (ORCPT ); Fri, 15 Feb 2013 09:45:45 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:47070 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755419Ab3BOOpp (ORCPT ); Fri, 15 Feb 2013 09:45:45 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MI9008NSNO7VEM0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Fri, 15 Feb 2013 23:45:43 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.42]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 94.AA.05791.71A4E115; Fri, 15 Feb 2013 23:45:43 +0900 (KST) X-AuditID: cbfee690-b7f066d00000169f-79-511e4a175343 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 71.7C.03918.71A4E115; Fri, 15 Feb 2013 23:45:43 +0900 (KST) Received: from [10.90.51.55] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MI900ANSNO76Y70@mmp1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 15 Feb 2013 23:45:43 +0900 (KST) Message-id: <511E4A19.6020000@samsung.com> Date: Fri, 15 Feb 2013 23:45:45 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-version: 1.0 To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , Seungwon Jeon Subject: [PATCH] mmc: dw-mmc: return the result of mmc_add_host() Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsVy+t8zLV1xL7lAg2cLDS2O/O9ndGD0+LxJ LoAxissmJTUnsyy1SN8ugSuj4eV65oJdrBXLml8xNTCeZOli5OSQEDCR+DxzJzOELSZx4d56 ti5GLg4hgWWMEpe6N7F2MXKAFa1ZYAMRX8Qo8eH8IiYIp51J4uuqg6wg3bwCWhJffv0Am8Qi oCpxa/YLdhCbTUBHYvu340wgtqhAmMTK6VdYIOoFJX5MvgdmiwjISvz8c4ENxGYWcJd4efwe WL2wgKNEw8mpLBBxHYn9rdOgauQlNq95ywxyhITAazaJf5NOQy0WkPg2+RALxNWyEpsOQH0m KXFwxQ2WCYwis5CsnoVk7CwkYxcwMq9iFE0tSC4oTkovMtErTswtLs1L10vOz93ECAnxCTsY 7x2wPsSYDLRyIrOUaHI+MEbySuINjQ2MDQ0tDc1MLU0NSBNWEueVvyQTKCSQnliSmp2aWpBa FF9UmpNafIiRiYNTqoHR0VRQaMbxzIensm79SDNfu22WvOz0efvv9HOprDn54fDSm0Jn5v+O nvt9QUexZ/i05Yl3UjeI3xKxNfDTMQq8WRrKmHnh1/rpr+7N2yIX4+m0bn+LTuI/hsccj/6U /StLVLsnxcEayPUjgEGEQ5vxBdvPjUckmt7JLXqX2/j2ydd7HIvecu3Zo8RSnJFoqMVcVJwI AHbOKtGHAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsVy+t9jAV1xL7lAg6YOTYsj//sZHRg9Pm+S C2CMamC0yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAGa qqRQlphTChQKSCwuVtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGPMaHi5nrlgF2vFsuZXTA2M J1m6GDk4JARMJNYssOli5AQyxSQu3FvP1sXIxSEksIhR4sP5RUwQTjuTxNdVB1lBqngFtCS+ /PrBDGKzCKhK3Jr9gh3EZhPQkdj+7TgTiC0qECaxcvoVFoh6QYkfk++B2SICshI//1xgA7GZ BdwlXh6/B1YvLOAo0XByKgtEXEdif+s0qBp5ic1r3jJPYOSbhWTULCRls5CULWBkXsUomlqQ XFCclJ5rqFecmFtcmpeul5yfu4kRHEHPpHYwrmywOMQowMGoxMMrICEbKMSaWFZcmXuIUYKD WUmEV+4WUIg3JbGyKrUoP76oNCe1+BBjMtCnE5mlRJPzgdGdVxJvaGxiZmRpZGZsYm5sTJqw kjgv46knAUIC6YklqdmpqQWpRTBbmDg4pRoY5z5Svr5T3TJa8P+OK4WTFxfNMHHamlm/i+uc 3tFTm36/D7K8pJme+C3u0kaFJR4tv1Yu2vJS4GjYjOr6iqOaOmmrP2Vamj4wm5DFezp2atPp Cq6yuvx+rZerZMPlP/i5vas4/on90bF0YxZFGT2+ziU5Jkrc+000vzS9nmrb9ZfVpOCc2h1h JZbijERDLeai4kQAV+dIw+QCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org check the result of mmc_add_host() and return the value. Signed-off-by: Jaehoon Chung Acked-by: Seungwon Jeon --- drivers/mmc/host/dw_mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 60063cc..e481d90 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1990,7 +1990,9 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) slot->wp_gpio = dw_mci_of_get_wp_gpio(host->dev, slot->id); - mmc_add_host(mmc); + ret = mmc_add_host(mmc); + if (ret) + goto err_setup_bus; #if defined(CONFIG_DEBUG_FS) dw_mci_init_debugfs(slot);