generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 7162-staging-fsl-mc-fix-incorrect-type-passed-to-dev_dbg-.patch
1 From 83e0f572a74bceeb3736b19b929c91d12d1d6d80 Mon Sep 17 00:00:00 2001
2 From: Cihangir Akturk <cakturk@gmail.com>
3 Date: Mon, 14 Mar 2016 18:14:06 +0200
4 Subject: [PATCH 162/226] staging: fsl-mc: fix incorrect type passed to
5 dev_dbg macros
6
7 dev_dbg macros expect const struct device ** as its second
8 argument but here the argument we are passing is of type
9 struct device ** this patch fixes this error.
10
11 Fixes: de71daf5c839 ("Staging: fsl-mc: Replace pr_debug with dev_dbg")
12 Cc: Bhumika Goyal <bhumirks@gmail.com>
13 Reported-by: Guenter Roeck <linux@roeck-us.net>
14 Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 drivers/staging/fsl-mc/bus/mc-sys.c | 6 +++---
18 1 file changed, 3 insertions(+), 3 deletions(-)
19
20 --- a/drivers/staging/fsl-mc/bus/mc-sys.c
21 +++ b/drivers/staging/fsl-mc/bus/mc-sys.c
22 @@ -328,7 +328,7 @@ static int mc_polling_wait_preemptible(s
23 MC_CMD_COMPLETION_POLLING_MAX_SLEEP_USECS);
24
25 if (time_after_eq(jiffies, jiffies_until_timeout)) {
26 - dev_dbg(&mc_io->dev,
27 + dev_dbg(mc_io->dev,
28 "MC command timed out (portal: %#llx, obj handle: %#x, command: %#x)\n",
29 mc_io->portal_phys_addr,
30 (unsigned int)
31 @@ -370,7 +370,7 @@ static int mc_polling_wait_atomic(struct
32 udelay(MC_CMD_COMPLETION_POLLING_MAX_SLEEP_USECS);
33 timeout_usecs -= MC_CMD_COMPLETION_POLLING_MAX_SLEEP_USECS;
34 if (timeout_usecs == 0) {
35 - dev_dbg(&mc_io->dev,
36 + dev_dbg(mc_io->dev,
37 "MC command timed out (portal: %#llx, obj handle: %#x, command: %#x)\n",
38 mc_io->portal_phys_addr,
39 (unsigned int)
40 @@ -426,7 +426,7 @@ int mc_send_command(struct fsl_mc_io *mc
41 goto common_exit;
42
43 if (status != MC_CMD_STATUS_OK) {
44 - dev_dbg(&mc_io->dev,
45 + dev_dbg(mc_io->dev,
46 "MC command failed: portal: %#llx, obj handle: %#x, command: %#x, status: %s (%#x)\n",
47 mc_io->portal_phys_addr,
48 (unsigned int)MC_CMD_HDR_READ_TOKEN(cmd->header),