layerscape: add ls1088ardb device support
[openwrt/staging/lynxis/omap.git] / target / linux / layerscape / patches-4.4 / 7163-staging-fsl-mc-fix-incorrect-type-passed-to-dev_err-.patch
1 From 79929c151efbc047a8a82f9cafcb9238465caa86 Mon Sep 17 00:00:00 2001
2 From: Cihangir Akturk <cakturk@gmail.com>
3 Date: Mon, 14 Mar 2016 18:14:07 +0200
4 Subject: [PATCH 163/226] staging: fsl-mc: fix incorrect type passed to
5 dev_err macros
6
7 dev_err macros expect const struct device ** as its second
8 argument, but here the argument we are passing is of typ
9 struct device **. This patch fixes this error.
10
11 Fixes: 454b0ec8bf99 ("Staging: fsl-mc: Replace pr_err with dev_err")
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-bus.c | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/drivers/staging/fsl-mc/bus/mc-bus.c
21 +++ b/drivers/staging/fsl-mc/bus/mc-bus.c
22 @@ -260,14 +260,14 @@ static int get_dprc_icid(struct fsl_mc_i
23
24 error = dprc_open(mc_io, 0, container_id, &dprc_handle);
25 if (error < 0) {
26 - dev_err(&mc_io->dev, "dprc_open() failed: %d\n", error);
27 + dev_err(mc_io->dev, "dprc_open() failed: %d\n", error);
28 return error;
29 }
30
31 memset(&attr, 0, sizeof(attr));
32 error = dprc_get_attributes(mc_io, 0, dprc_handle, &attr);
33 if (error < 0) {
34 - dev_err(&mc_io->dev, "dprc_get_attributes() failed: %d\n",
35 + dev_err(mc_io->dev, "dprc_get_attributes() failed: %d\n",
36 error);
37 goto common_cleanup;
38 }