From patchwork Mon May 2 12:40:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sahitya Tummala X-Patchwork-Id: 747192 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 p42CeSet027571 for ; Mon, 2 May 2011 12:40:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756906Ab1EBMkY (ORCPT ); Mon, 2 May 2011 08:40:24 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:7032 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756156Ab1EBMkM (ORCPT ); Mon, 2 May 2011 08:40:12 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6333"; a="88767908" Received: from pdmz-ns-mip.qualcomm.com (HELO mostmsg01.qualcomm.com) ([199.106.114.10]) by wolverine02.qualcomm.com with ESMTP/TLS/ADH-AES256-SHA; 02 May 2011 05:40:12 -0700 Received: from stummala-linux.in.qualcomm.com (pdmz-snip-v218.qualcomm.com [192.168.218.1]) by mostmsg01.qualcomm.com (Postfix) with ESMTPA id DF70810004A2; Mon, 2 May 2011 05:39:51 -0700 (PDT) From: Sahitya Tummala To: davidb@codeaurora.org, bryanh@codeaurora.org, dwalker@fifo99.com Cc: linux-mmc@vger.kernel.org, linux-arm-msm@vger.kernel.org, san@google.com, Sahitya Tummala Subject: [PATCH V2 6/7] mmc: msm_sdcc: Change initialization order of busclk_timer in probe Date: Mon, 2 May 2011 18:10:01 +0530 Message-Id: <1304340001-8720-1-git-send-email-stummala@codeaurora.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1303796066-6784-6-git-send-email-stummala@codeaurora.org> References: <1303796066-6784-6-git-send-email-stummala@codeaurora.org> 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 02 May 2011 12:40:48 +0000 (UTC) Intialize busclk_timer before it is accessed in probe. Signed-off-by: Sahitya Tummala --- drivers/mmc/host/msm_sdcc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 908524b..1fe4102 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c @@ -1209,6 +1209,10 @@ msmsdcc_probe(struct platform_device *pdev) host->plat = plat; host->mmc = mmc; host->curr.cmd = NULL; + init_timer(&host->busclk_timer); + host->busclk_timer.data = (unsigned long) host; + host->busclk_timer.function = msmsdcc_busclk_expired; + host->cmdpoll = 1; @@ -1326,10 +1330,6 @@ msmsdcc_probe(struct platform_device *pdev) host->eject = !host->oldstat; } - init_timer(&host->busclk_timer); - host->busclk_timer.data = (unsigned long) host; - host->busclk_timer.function = msmsdcc_busclk_expired; - ret = request_irq(cmd_irqres->start, msmsdcc_irq, IRQF_SHARED, DRIVER_NAME " (cmd)", host); if (ret)