]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mfd: syscon: Fix syscon_regmap_lookup_by_phandle_args() dummy
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 30 Jan 2020 12:55:29 +0000 (13:55 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 3 Feb 2020 08:39:49 +0000 (08:39 +0000)
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: 6a24f567af4accef ("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>
include/linux/mfd/syscon.h

index 714cab1e09d3c1fda7104f9ed849b18de366e88c..7f20e9b502a5bd48dc9624fc0d4d34dd4237de75 100644 (file)
@@ -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,