From patchwork Fri Oct 17 17:16:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38935 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C43B9202DB for ; Fri, 17 Oct 2014 17:18:22 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf721276lbi.2 for ; Fri, 17 Oct 2014 10:18:21 -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=nO3jdAC9VE8pJyEClZCWD/CRw08HgjH6hX3ZO6E53y8=; b=EJLjPOi/7r6zXAuJ0iY3FR4is6tlJaYvxfqqTJiSZE9qMbDgXkWbE8vNru2nhZpGb+ AqJLmNhf1AsbwvMM5z+fcXVctET1OYCwhuOCKXTqrhHJ8ijmtgdUUdtmE5M4Z7wZz561 tXTdZMWGh3+6Ase8IxYGZgUOQzy/W3CluyomAYzC/IatatKossD7KuV543TtEE0F76Od oRcIpvmc2Yoh/Bt3aKLw5ElUdQueDRGlWJZVyPo1TS9RjJsaZkjuGhtuf2sFaP/VX8lh wl9VdeaTC7xkpLxwVsM9tYBo5oELG55pgWEzoyQcfxvprP+8xK2MAvxByJpCFItzuW4r k6XA== X-Gm-Message-State: ALoCoQkD9rDUf8WN8893L8jltCXFR2dt/eU3kND7bGT1tcztGkl15eU1S6QoouKCgleiUI6i9GXR X-Received: by 10.152.28.4 with SMTP id x4mr38935lag.7.1413566301571; Fri, 17 Oct 2014 10:18:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.167 with SMTP id kr7ls268889lac.94.gmail; Fri, 17 Oct 2014 10:18:21 -0700 (PDT) X-Received: by 10.152.43.97 with SMTP id v1mr10233364lal.3.1413566301302; Fri, 17 Oct 2014 10:18:21 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id v2si2931712lav.132.2014.10.17.10.18.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hz20so1052587lab.25 for ; Fri, 17 Oct 2014 10:18:21 -0700 (PDT) X-Received: by 10.112.221.197 with SMTP id qg5mr10211220lbc.32.1413566301196; Fri, 17 Oct 2014 10:18:21 -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 c5csp268096lbz; Fri, 17 Oct 2014 10:18:20 -0700 (PDT) X-Received: by 10.68.242.164 with SMTP id wr4mr4987564pbc.148.1413566299043; Fri, 17 Oct 2014 10:18:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jc4si1716313pbd.35.2014.10.17.10.18.18 for ; Fri, 17 Oct 2014 10:18:19 -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 S1753651AbaJQRSJ (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:09 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44355 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbaJQRSH (ORCPT ); Fri, 17 Oct 2014 13:18:07 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHwAP008057; Fri, 17 Oct 2014 12:17:58 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHwgL000851; Fri, 17 Oct 2014 12:17:58 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) 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 dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHvUs030493; Fri, 17 Oct 2014 12:17:58 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Peter Chen , Felipe Balbi Subject: [PATCH 31/67] usb: musb: blackfin: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:38 -0500 Message-ID: <1413566234-13537-32-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.215.52 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/blackfin.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index ac4422b..8554c6f 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -456,16 +456,12 @@ static int bfin_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) { - dev_err(&pdev->dev, "failed to allocate musb device\n"); + if (!musb) goto err0; - } musb->dev.parent = &pdev->dev; musb->dev.dma_mask = &bfin_dmamask;