From patchwork Tue Sep 22 13:12:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 49257 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8MDCfch011350 for ; Tue, 22 Sep 2009 13:12:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756566AbZIVNMg (ORCPT ); Tue, 22 Sep 2009 09:12:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756545AbZIVNMg (ORCPT ); Tue, 22 Sep 2009 09:12:36 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44007 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756537AbZIVNMf (ORCPT ); Tue, 22 Sep 2009 09:12:35 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n8MDCIpA024429; Tue, 22 Sep 2009 08:12:19 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n8MDCEn7009354; Tue, 22 Sep 2009 18:42:15 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id n8MDCEXh026394; Tue, 22 Sep 2009 18:42:14 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id n8MDCErM026371; Tue, 22 Sep 2009 18:42:14 +0530 From: Ajay Kumar Gupta To: linux-omap@vger.kernel.org Cc: felipe.balbi@nokia.com, david-b@pacbell.net, tony@atomide.com, Ajay Kumar Gupta Subject: [PATCH 3/4] ehci: fix kernel panic in ehci_probe Date: Tue, 22 Sep 2009 18:42:11 +0530 Message-Id: <1253625132-15050-3-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1253625132-15050-2-git-send-email-ajay.gupta@ti.com> References: <1253625132-15050-1-git-send-email-ajay.gupta@ti.com> <1253625132-15050-2-git-send-email-ajay.gupta@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org hcd_priv_size has to be sizeof(struct ehci_hcd). - .hcd_priv_size = sizeof(struct ehci_hcd_omap), + .hcd_priv_size = sizeof(struct ehci_hcd), Without this kernel panic is observed in probe function. Signed-off-by: Ajay Kumar Gupta --- drivers/usb/host/ehci-omap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index f77a99d..a10ecd9 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -748,7 +748,7 @@ static struct platform_driver ehci_hcd_omap_driver = { static const struct hc_driver ehci_omap_hc_driver = { .description = hcd_name, .product_desc = "OMAP-EHCI Host Controller", - .hcd_priv_size = sizeof(struct ehci_hcd_omap), + .hcd_priv_size = sizeof(struct ehci_hcd), /* * generic hardware linkage