Skip to content

Commit

Permalink
mfd: syscon: Fix syscon_regmap_lookup_by_phandle_args() dummy
Browse files Browse the repository at this point in the history
If CONFIG_MFD_SYSCON=n:

    include/linux/mfd/syscon.h:54:23: warning: ‘syscon_regmap_lookup_by_phandle_args’ defined but not used [-Wunused-function]

Fix this by adding the missing inline keyword.

Fixes: 6a24f56 ("mfd: syscon: Add arguments support for syscon reference")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Lee Jones committed Feb 3, 2020
1 parent 6ac7e4d commit 5312f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mfd/syscon.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle(
return ERR_PTR(-ENOTSUPP);
}

static struct regmap *syscon_regmap_lookup_by_phandle_args(
static inline struct regmap *syscon_regmap_lookup_by_phandle_args(
struct device_node *np,
const char *property,
int arg_count,
Expand Down

0 comments on commit 5312f32

Please sign in to comment.