From patchwork Tue Jun 4 02:09:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10974127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16E176C5 for ; Tue, 4 Jun 2019 02:09:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01F47285AB for ; Tue, 4 Jun 2019 02:09:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E46292863C; Tue, 4 Jun 2019 02:09:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90512285AB for ; Tue, 4 Jun 2019 02:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726205AbfFDCJN (ORCPT ); Mon, 3 Jun 2019 22:09:13 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38346 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfFDCJN (ORCPT ); Mon, 3 Jun 2019 22:09:13 -0400 Received: by mail-qt1-f195.google.com with SMTP id l3so11984328qtj.5 for ; Mon, 03 Jun 2019 19:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=A8Vzg318xmH58Z9a+fveMVNEFPv+xhZ4diThI/PeSOU=; b=buvZBmdESQg2EGcwE9JW2BpWcJd2ZGCF9TR3Nl0JaADp8nCwpIUjD2n+4w4g4Tc8NM GtQtIcwVYro54a64ui3Ruhl3c4DlWUi9tby7KYDl0BuFU4428iLus5Ml7WL3f6MB1sfs NGFbOyboJX4OYYeZdOycQjy046leQXEztkikHlpcDRWmwyx4OpZgGMNwWwNDFXo7XFMz 9WJRB7cVJvH7p7SXBDDDk2wlnjm/h4GzO9Z1TTaqQuNKrVVJAyBdk66iD4QilUCwAqmZ OfCznTKkspJ9K2+KGozpQqrNngGYN0ftP5aIw6a15MV4+HQvaYpQrLjrmqCBHN8RwcKT jB9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A8Vzg318xmH58Z9a+fveMVNEFPv+xhZ4diThI/PeSOU=; b=AhOUJ30UqtgYymjSXMKVhFzc3H+JldLOv6/T7QDzoAt6ZF3DYKts9d2MBNMO6AaOvW 4SIO8UQ1lPL4YVUP+/QLbfwbrDDyqNP9AO+z9grvigQ5aM7p26RsEteOErm1kSEoHJad FOFr1BcJoSslslXIu5caJjcOkjKcTjScRRkDKPcsjv7Ha2FXsjnT+yaMCgXvCRxOMb2u Glkzo4MytnCZH8wOVTJ8jf5HASDB06D6tUofVBDGy6QFOV+aFdrsGnqNdvA9SgV2LXOS y0PrTWivMXxyT7g6TqIE2yYSM5pdx4GKaINEcNQcYv9E8oItrRl338BEzr0Qzlf7j9rr ygXQ== X-Gm-Message-State: APjAAAWODhiU7HZ+o6ScxO55SiuhSdkT8CioBSnSKv6N1KGAdRJ3lxt2 sZBUcRwYTLyCMzjhsQcCqaD/rnac X-Google-Smtp-Source: APXvYqwLENJw30qpVSOq+34Wri0oVx/5zygUppGbYbkxdZiqZNcqoHp0qE9v+e1a7aYTPgIHHu4lHg== X-Received: by 2002:aed:2bc1:: with SMTP id e59mr5936211qtd.7.1559614152130; Mon, 03 Jun 2019 19:09:12 -0700 (PDT) Received: from fabio-Latitude-E5450.am.freescale.net ([2804:14c:482:3c8:56cb:1049:60d2:137b]) by smtp.gmail.com with ESMTPSA id 45sm12102276qtn.82.2019.06.03.19.09.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 19:09:11 -0700 (PDT) From: Fabio Estevam To: Peter.Chen@nxp.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, Fabio Estevam Subject: [PATCH] usb: chipidea: Use dev_err() instead of pr_err() Date: Mon, 3 Jun 2019 23:09:01 -0300 Message-Id: <20190604020901.15197-1-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dev_err() is more appropriate for printing error messages inside drivers, so switch to dev_err(). Signed-off-by: Fabio Estevam --- drivers/usb/chipidea/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 27749ace2d93..1b6495829265 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -523,8 +523,9 @@ int hw_device_reset(struct ci_hdrc *ci) hw_write(ci, OP_USBMODE, USBMODE_SLOM, USBMODE_SLOM); if (hw_read(ci, OP_USBMODE, USBMODE_CM) != USBMODE_CM_DC) { - pr_err("cannot enter in %s device mode", ci_role(ci)->name); - pr_err("lpm = %i", ci->hw_bank.lpm); + dev_err(ci->dev, "cannot enter in %s device mode", + ci_role(ci)->name); + dev_err(ci->dev, "lpm = %i", ci->hw_bank.lpm); return -ENODEV; }