From patchwork Wed Nov 10 15:28:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peppe CAVALLARO X-Patchwork-Id: 314472 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAAFSlad029535 for ; Wed, 10 Nov 2010 15:28:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756717Ab0KJP23 (ORCPT ); Wed, 10 Nov 2010 10:28:29 -0500 Received: from eu1sys200aog118.obsmtp.com ([207.126.144.145]:39010 "EHLO eu1sys200aog118.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756620Ab0KJP22 (ORCPT ); Wed, 10 Nov 2010 10:28:28 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob118.postini.com ([207.126.147.11]) with SMTP ID DSNKTNq6Gt52n+pVd6XfhmtcNN2k0tol8LW4@postini.com; Wed, 10 Nov 2010 15:28:27 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2008699 for ; Wed, 10 Nov 2010 15:28:26 +0000 (GMT) Received: from mail1.ctn.st.com (mail1.ctn.st.com [164.130.116.128]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DED335419 for ; Wed, 10 Nov 2010 15:28:25 +0000 (GMT) Received: from localhost ([164.130.129.16]) by mail1.ctn.st.com (MOS 3.8.7a) with ESMTP id DLS00279 (AUTH cavagiu); Wed, 10 Nov 2010 16:28:25 +0100 (CET) From: Giuseppe CAVALLARO To: linux-mmc@vger.kernel.org Cc: Giuseppe Cavallaro Subject: [PATCH (1/5)] mmc: sdhci-pltfm calls the sdhci_alloc_host with pdev->dev Date: Wed, 10 Nov 2010 16:28:05 +0100 Message-Id: <1289402889-14160-3-git-send-email-peppe.cavallaro@st.com> X-Mailer: git-send-email 1.5.5.6 In-Reply-To: <1289402889-14160-2-git-send-email-peppe.cavallaro@st.com> References: <1289402889-14160-1-git-send-email-peppe.cavallaro@st.com> <1289402889-14160-2-git-send-email-peppe.cavallaro@st.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 10 Nov 2010 15:28:48 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 78a8f7a..4e881a5 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -65,11 +65,7 @@ static int __devinit sdhci_pltfm_probe(struct platform_device *pdev) dev_err(&pdev->dev, "Invalid iomem size. You may " "experience problems.\n"); - if (pdev->dev.parent) - host = sdhci_alloc_host(pdev->dev.parent, 0); - else - host = sdhci_alloc_host(&pdev->dev, 0); - + host = sdhci_alloc_host(&pdev->dev, 0); if (IS_ERR(host)) { ret = PTR_ERR(host); goto err;