From patchwork Fri Oct 17 17:16:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38973 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8704D202DB for ; Fri, 17 Oct 2014 17:19:39 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf713949lab.11 for ; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=4dgWJqm1lU1ovBpLLkDu5zG9Y5g/SQ3KZG3Ju6ZnWPM=; b=blpAdDELmNK/qiP8k73Rvfq531Y5WmTkh82n7+GLQ5yZoPPwAHN8c9fqiG5Vi1BQ9M FFV/YGRQMzD5uZsQvn4+vg3+dD2k/XIns9yRkILMuYAu2mrGXJIqduTv7PB8r1BJ8s5C Iev/No+2ENb98jD9dEy5fZ9Uu+XbIz2xGpx/U+EdjsyilI0UsKLlX+b9qbL4AmwyrSI+ gtZ7VqDFK7lgbSPE87Chgpp3924I/1U5tsTk2Bey7ny3mb0OEpSVnk8o8jrGKIKcKhGr W26B7NllYk3Us7HSlYladSY6UzVIeYOdeU3Oy6eaQCc4NbUQQbiC52dboimI+UrDp9vh RZjQ== X-Gm-Message-State: ALoCoQnceboZW0NNI5cOHE5RQ0aVG6dQdNg51/eDSHFQTR4hwNWxGILv4eWvmtQHqQR56/tOnQOw X-Received: by 10.180.19.198 with SMTP id h6mr52572wie.5.1413566378372; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.174 with SMTP id p14ls231752lal.68.gmail; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) X-Received: by 10.112.183.233 with SMTP id ep9mr10382031lbc.62.1413566378214; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id l2si3018681lbc.48.2014.10.17.10.19.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id 10so1053764lbg.28 for ; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) X-Received: by 10.112.77.74 with SMTP id q10mr1970251lbw.66.1413566378123; Fri, 17 Oct 2014 10:19:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp268350lbz; Fri, 17 Oct 2014 10:19:37 -0700 (PDT) X-Received: by 10.66.90.164 with SMTP id bx4mr9708046pab.61.1413566376609; Fri, 17 Oct 2014 10:19:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf2si376641pac.129.2014.10.17.10.19.35 for ; Fri, 17 Oct 2014 10:19:36 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839AbaJQRTe (ORCPT + 3 others); Fri, 17 Oct 2014 13:19:34 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55801 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753590AbaJQRSF (ORCPT ); Fri, 17 Oct 2014 13:18:05 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHvi9011724; Fri, 17 Oct 2014 12:17:57 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHvVN029437; Fri, 17 Oct 2014 12:17:57 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:58 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHuVO030977; Fri, 17 Oct 2014 12:17:57 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Peter Chen , Felipe Balbi Subject: [PATCH 30/67] usb: musb: omap2430: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:37 -0500 Message-ID: <1413566234-13537-31-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/omap2430.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index d369bf1..6669f26 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -518,10 +518,8 @@ static int omap2430_probe(struct platform_device *pdev) int ret = -ENOMEM; glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); - if (!glue) { - dev_err(&pdev->dev, "failed to allocate glue context\n"); + if (!glue) goto err0; - } musb = platform_device_alloc("musb-hdrc", PLATFORM_DEVID_AUTO); if (!musb) { @@ -543,25 +541,16 @@ static int omap2430_probe(struct platform_device *pdev) struct platform_device *control_pdev; pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); - if (!pdata) { - dev_err(&pdev->dev, - "failed to allocate musb platform data\n"); + if (!pdata) goto err2; - } data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); - if (!data) { - dev_err(&pdev->dev, - "failed to allocate musb board data\n"); + if (!data) goto err2; - } config = devm_kzalloc(&pdev->dev, sizeof(*config), GFP_KERNEL); - if (!config) { - dev_err(&pdev->dev, - "failed to allocate musb hdrc config\n"); + if (!config) goto err2; - } of_property_read_u32(np, "mode", (u32 *)&pdata->mode); of_property_read_u32(np, "interface-type",