Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1016867imu; Fri, 11 Jan 2019 13:21:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6p1BKeEuiivOpSHfD+MvjJsaJs4cDmuTVDxX/s5dEz5QH5Y/oug8w8Kk64ETfXmIKoiMbB X-Received: by 2002:a17:902:724a:: with SMTP id c10mr16530141pll.51.1547241687250; Fri, 11 Jan 2019 13:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547241687; cv=none; d=google.com; s=arc-20160816; b=cQLpJCpyyml0pQsaOhkkh7sVk/tuG55i/+X4ZZHAi5+CvecVxPDBuj+p886fpw1Ve8 yVaCBVWO4htohVQaU1s316k4loHM3Ci0JLbbbPYOUGN3FqcpSaE3YfgZyExtqL6oX97j 5MgOBYCj7CThOryG2rDV6KaG+NJu8wYo0cyuVR2a4jE+4l+JjS+x+/os5HTtT/IrhiNv RDmprFkwcyQw+HS/Go9ZkL856jDx0L+j3OcufSfYeIMf/pfPBOlpBSYMH1BymLacnhEp ODIdCQk/g3Zkv5JwRyBvTyWyqJNVv1p9LZdOtS6HclluX9kL/faLKA9fKgYhw9Q/AIP8 WQCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EZuop56TD2TeVHsCHrHRufvslIjfMqbihVRqyfb2Fqk=; b=ionj9xkkb91PKwrFCAu0bTyPcGRr/dp1/ICfKFWBHl13ciM8TDBLbOHI4jLmM8/KyV PNCjBJXHjEL1guMKLMaX1eoznXn4MCGxDBwcyO/mYhfK+OlaYr+dRtGyUz/XIDJqvJdi JMR+cFPZWfQn/mD3daNVXu1xCojEN6RUwRejUcdsOtYA6peHxs6vbW2XdFb21x+v1taV MfbGIRxncZnPxSYPRJ0b6CZ8rl3u6iP9CYnYVDz+QDY38VcL+qJZpcZrf54WJzKpwUrd ILGSCYyzIXC/x8TmLe9zdS6uTqjWB5OwMmvGidiKizj1d8sU4uENaYEV21u0GcQYoDlq ck5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=mUV5kHw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si37994354pgd.326.2019.01.11.13.21.12; Fri, 11 Jan 2019 13:21:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=mUV5kHw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbfAKU5H (ORCPT + 99 others); Fri, 11 Jan 2019 15:57:07 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:60654 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbfAKU5B (ORCPT ); Fri, 11 Jan 2019 15:57:01 -0500 Received: from trochilidae.toradex.int (unknown [37.17.239.109]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 151595C07C2; Fri, 11 Jan 2019 21:57:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547240220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=EZuop56TD2TeVHsCHrHRufvslIjfMqbihVRqyfb2Fqk=; b=mUV5kHw2C2xl897ojBJhpNm9dF6bjk97CTCggizvR8p3EKQ52rflrVPupN2PXhNNdU387C iCAe3r7iXd+A3MtZf/8NTgsCCiUZO/uk5qFRhwFMfgTfm7dCAilB/BIDzzmkfsJGKqhyWP SgztigVDIk65VQ4G1Mxetxu0iWLaHC8= From: Stefan Agner To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: huxm@marvell.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH 1/2] bluetooth: btmrvl_sdio: improve printk messages Date: Fri, 11 Jan 2019 21:56:56 +0100 Message-Id: <20190111205657.2792-1-stefan@agner.ch> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use dev_* variants to print messages in drivers. Signed-off-by: Stefan Agner --- drivers/bluetooth/btmrvl_sdio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index fb3d03928460..6f9a1735039d 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -62,13 +62,14 @@ static const struct of_device_id btmrvl_sdio_of_match_table[] = { static irqreturn_t btmrvl_wake_irq_bt(int irq, void *priv) { struct btmrvl_sdio_card *card = priv; + struct device *dev = &card->func->dev; struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg; - pr_info("%s: wake by bt\n", __func__); + dev_info(dev, "wake by bt\n"); cfg->wake_by_bt = true; disable_irq_nosync(irq); - pm_wakeup_event(&card->func->dev, 0); + pm_wakeup_event(dev, 0); pm_system_wakeup(); return IRQ_HANDLED; @@ -87,7 +88,7 @@ static int btmrvl_sdio_probe_of(struct device *dev, if (!dev->of_node || !of_match_node(btmrvl_sdio_of_match_table, dev->of_node)) { - pr_err("sdio platform data not available\n"); + dev_err(dev, "sdio platform data not available\n"); return -1; } -- 2.20.1