kernel: backport bcma patches that improve printing functions
[openwrt/staging/wigyori.git] / target / linux / generic / backport-4.14 / 080-v5.1-0002-bcma-use-dev_-printing-functions.patch
1 From 777bc4801a6868fcbff09ffb6e30f023e7c5ed38 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 2 Jan 2019 00:00:02 +0100
4 Subject: [PATCH] bcma: use dev_* printing functions
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 It provides more meaningful messages.
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
13 ---
14 drivers/bcma/bcma_private.h | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17 --- a/drivers/bcma/bcma_private.h
18 +++ b/drivers/bcma/bcma_private.h
19 @@ -10,13 +10,13 @@
20 #include <linux/delay.h>
21
22 #define bcma_err(bus, fmt, ...) \
23 - pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
24 + dev_err((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
25 #define bcma_warn(bus, fmt, ...) \
26 - pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
27 + dev_warn((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
28 #define bcma_info(bus, fmt, ...) \
29 - pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
30 + dev_info((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
31 #define bcma_debug(bus, fmt, ...) \
32 - pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
33 + dev_dbg((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
34
35 struct bcma_bus;
36